By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,720 Members | 2,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,720 IT Pros & Developers. It's quick & easy.

Trying to get a url to open a new window in Simile Timeline

P: 21
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:

Expand|Select|Wrap|Line Numbers
  1. <data>
  2. <event start="Jun 02 2008 09:00:00 GMT" end="Aug 02 2008 16:00:00 GMT" isDuration="true" title="Internship at LMC" image="">Documentation and links for new hires at &lt;a href =""&gt;Passport&lt;/a&gt;. </event>
  3. <event start="Jul 01 2008 11:00:00 GMT" end="Aug 02 2008 13:00:00 GMT" isDuration="true" title="BSA Site Redesign" image="">Project updates and site improvements at &lt;a href=""&gt;Team Site&lt;/a&gt;.</event>
  4. <event start="July 02 2008 13:00:00 GMT-0500" title= "Implement changes to Sharepoint site to include Timeline" /> 
  5. <event start="Aug 05 2008 05:00:00 GMT-0500" title= "Board plane to Bethesda MD" link="">HQ here we come!</event> 
  6. <event start="Aug 05 2008 10:00:00 GMT-0500" title= "Meet with Sondra to discuss BSA changes" />
  7. <event start="Sep 10 2008 12:00:00 GMT-0500" title= "Changes to eVCS servers" />
  8. <event start="Sep 10 2008 14:00:00 GMT-0500" title= "Meet with BSA Leads to discuss new projects" />
  11. </data>
Jul 4 '08 #1
Share this Question
Share on Google+
5 Replies

Expert Mod 15k+
P: 16,027
To open a window, use If you can use links, use something like:
Expand|Select|Wrap|Line Numbers
  1. <a href="linktopage.html" onclick=", 'windowName',...)">...</a>
If you can declare functions, then you could call a function onclick instead.
Jul 4 '08 #2

P: 21

I tried to insert that into the XML file but it comes back with "object error". Can you give a specific example of how to use the code with the code I provided, like line 2 or 5? Thanks
Jul 7 '08 #3

Expert Mod 15k+
P: 16,027
You mention that Simile Timeline uses DHTML and Ajax. Perhaps rather than modifying the XML, you can use JavaScript to turn the links into calls.
Jul 7 '08 #4

P: 21
I just figured it out, and it's amazing how easy it 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="">Documentation and links for new hires at &lt;a target=_new href=""&gt;Passport&lt;/a&gt;. </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:
Expand|Select|Wrap|Line Numbers
  1.   <event start="Aug 05 2008 05:00:00 GMT-0500" title= "Board plane to Bethesda MD" link="">HQ here we come!</event> 
Jul 9 '08 #5

Expert Mod 15k+
P: 16,027
For links, target='_blank' would also work.

I think your best bet would be to add code which converts links to open new windows, rather than looking for something to add in the XML.
Jul 9 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.