473,387 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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="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>
  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="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>
  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="http://www.expedia.com/daily/flights/default.asp?rfrr=-409/">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" />
  9.  
  10.  
  11. </data>
Jul 4 '08 #1
5 3273
acoder
16,027 Expert Mod 8TB
To open a window, use window.open(). If you can use links, use something like:
Expand|Select|Wrap|Line Numbers
  1. <a href="linktopage.html" onclick="window.open(this.href, 'windowName',...)">...</a>
If you can declare functions, then you could call a function onclick instead.
Jul 4 '08 #2
Hi,

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
acoder
16,027 Expert Mod 8TB
You mention that Simile Timeline uses DHTML and Ajax. Perhaps rather than modifying the XML, you can use JavaScript to turn the links into window.open() calls.
Jul 7 '08 #4
I 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 &lt;a target=_new href="https://passport.global.lmco.com/irj/portal/"&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="http://www.expedia.com/daily/flights/default.asp?rfrr=-409/">HQ here we come!</event> 
Jul 9 '08 #5
acoder
16,027 Expert Mod 8TB
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

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

Similar topics

4
by: Cobb | last post by:
Hello- I'm interested in building a graphical timeline for a series of tasks that are stored in a SQL Server 2000 database. The tasks reside within a table. We also have a table to track the...
1
by: ck388 | last post by:
I am trying to open a frameset in a new window......where the frame called "main" shows the file called customerGeneral.aspx. I can't get it to work though...i always get something like...
19
by: Albretch | last post by:
Hi, client wants for a window with no toolbars to open (technical and 'esthetical' reasons) after the window, user clicks on, is being closed. I told them about security settings in browsers...
5
by: krose | last post by:
I am looking for a control that would look like a timeline (12 hours) which would allow the user to click at a particular location on the timeline, then allow characteristics to be associated with...
17
by: jshanman | last post by:
I am working on a timeline API that devevelopers can use to add a dynamic timeline to their sites. Here is a *working* demo of the basic interface. (it works for me anyway on ie6 & firefox 1.5)...
2
by: monteverest | last post by:
I have a movieclip with 15 frame of animation nested on the main timeline. I want to code a delay on the nested clip so that when the playhead reaches the final frame, the nest clip will stop or...
0
by: nbt725 | last post by:
Dear Sir, Hello ! I have use simile timeline. (http://simile.mit.edu/mail.html). I am new to timeline and would like to do following, please guide me. In my timeline I have created 2 bands one...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.