473,653 Members | 2,990 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

21 New Member
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 3289
acoder
16,027 Recognized Expert Moderator MVP
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
doublestack
21 New Member
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 Recognized Expert Moderator MVP
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
doublestack
21 New Member
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 Recognized Expert Moderator MVP
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
8013
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 history and date of status changes. Some of the status flags are as follows: 1 - In Progress. 2 - Awaiting Info. 3 - On review server. For each task, using ASP or ASP.Net, I would like to be able to display a
1
3928
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 frames.main.location is null....seems like the frameset is not loaded before wnd.frames.location.replace(URL) is called. If i add an alert("TEST") between the window open and the frame replacement....then it works. The alert("TEST") seems to ensure that...
19
13040
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 and no cross-browsers solutions and all of that we know, but they have told me they have seen that before and how then the annoying pop-up windows work? . . .
5
5665
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 that point. Free or For Profit either one. The idea is I am developing an activity tracking system for a manufacturing environment where they want to track activities that are occuring throughout a shift. Activities have start and stop times...
17
5042
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) http://www.endeavorpub.com/wiki/timeline.html Please tear apart my code and tell me what I'm doing wrong so far...
2
2032
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 freeze for several seconds. The problem, I think, is the main timeline is only 1 frame, thus my code does not persist long enough to recognize that playhead on the nested clip ended. here's my code: main timeline if (nestedClip._currentframes ==...
0
1963
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 for year and other for month and added the synchronization script between bands so that moving any of them scrolls other also. 1) What to do to scroll timeline vertically meaning if I have so many entries in one month to display in...
0
8370
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8283
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8704
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8470
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5620
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2707
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1591
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.