Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

New window from url in xml file using Simile Timeline

Question posted by: doublestack (Newbie) on July 4th, 2008 02:21 AM
Hi everyone,
I have a xml file that Simile Timeline uses to call events...Some of the events have links in them and I need to have those links open a new window. As it stands now the links replace the timeline. Simile Timeline uses DHTML and AJAX. Any suggestions?

Sample of code:

<data>
<event start="Jun 02 2008 09:00:00 GMT" end="Aug 02 2008 16:00:00 GMT" isDuration="true" title="Internship at LMC" image="http://i134.photobucket.com/albums/q82/djdoublestack/efa4ad6a.jpg">Documentation and links for new hires at &lt;a href ="https://passport.global.lmco.com/irj/portal/"&gt;Passport&lt;/a&gt;. </event>
<event start="Jul 01 2008 11:00:00 GMT" end="Aug 02 2008 13:00:00 GMT" isDuration="true" title="BSA Site Redesign" image="https://sharepoint.global.lmco.com/sites/BSAGroup/Logo%20Options/Typo-%20Magnifying%20spelled%20wrong/bsa_logo_v1.GIF">Project updates and site improvements at &lt;a href="https://sharepoint.global.lmco.com/sites/BSAGroup/default.aspx"&gt;Team Site&lt;/a&gt;.</event>
<event start="July 02 2008 13:00:00 GMT-0500" title= "Implement changes to Sharepoint site to include Timeline" />
<event start="Aug 05 2008 05:00:00 GMT-0500" title= "Board plane to Bethesda MD" link="http://www.expedia.com/daily/flights/default.asp?rfrr=-409/">HQ here we come!</event>
<event start="Aug 05 2008 10:00:00 GMT-0500" title= "Meet with Sondra to discuss BSA changes" />
<event start="Sep 10 2008 12:00:00 GMT-0500" title= "Changes to eVCS servers" />
<event start="Sep 10 2008 14:00:00 GMT-0500" title= "Meet with BSA Leads to discuss new projects" />


</data>
doublestack's Avatar
doublestack
Newbie
6 Posts
July 9th, 2008
06:22 PM
#2

Re: New window from url in xml file using Simile Timeline
just figured it out, and it's amazing how easy it was...here is what I added:"target=_new"

Expand|Select|Wrap|Line Numbers
  1. <event start="Jun 02 2008 09:00:00 GMT" end="Aug 02 2008 16:00:00 GMT" isDuration="true" title="Internship at LMC" image="http://i134.photobucket.com/albums/q82/djdoublestack/efa4ad6a.jpg">Documentation and links for new hires at <a target=_new href="https://passport.global.lmco.com/irj/portal/">Passport</a>. </event> 


It worked for that case but won't work for this one where "Board plane..." needs to be the link to open a new window. Any ideas?:

Expand|Select|Wrap|Line Numbers
  1. <event start="Aug 05 2008 05:00:00 GMT-0500" title= "Board plane to Bethesda MD" link="http://www.expedia.com/daily/flights/default.asp?rfrr=-409/">HQ here we come!</event> 

Reply
Reply
Not the answer you were looking for? Post your question . . .
189,282 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top XML Forum Contributors