Niek,

You can specify a "link" attribute on each event

    <event link="http://somewhere.com/"; ...

or in JS

    {  title: "Kennedy shot",
        ...
        link: "http://...";,
        ...
    }

In the dinosaurs example,
    http://simile.mit.edu/timeline/examples/dinosaurs/dinosaurs2.html
click on any dinosaur and you should find that its name has a link.

Is that what you want to do?

Cheers,

David

Niek van Baalen wrote:
> Hello,
>
> After studying on the answer of David and the various scripts I conclude 
> that what I really would want to do is  add                 
> "this._resolveRelativeURL(node.getAttribute("target"), base),"
> so I can give by each eventsource a specific target to go to to show the 
> content.
> Does anyone know of a example that does something like this or  tell me 
> what I have to change in the js  files to get this done?
>
>
>            var evt = new Timeline.DefaultEventSource.Event(
>                 parseDateTimeFunction(node.getAttribute("start")),
>                 parseDateTimeFunction(node.getAttribute("end")),
>                 parseDateTimeFunction(node.getAttribute("latestStart")),
>                 parseDateTimeFunction(node.getAttribute("earliestEnd")),
>                 node.getAttribute("isDuration") != "true",
>                 node.getAttribute("title"),
>                 description,
>                 this._resolveRelativeURL(node.getAttribute("image"), base),
>                 this._resolveRelativeURL(node.getAttribute("link"), base),
>                 this._resolveRelativeURL(node.getAttribute("target"), base),
>                 this._resolveRelativeURL(node.getAttribute("icon"), base),
>                 node.getAttribute("color"),
>                 node.getAttribute("textColor")
>             );
>
> Thanks,
> Niek van Baalen
>
> Niek van Baalen schreef:
>   
>> Thanks David,
>>
>> Looks very promising.
>> Is there an example somewhere where I can see how to use it?
>> I am not a javaprogrammer so need examples to understand how it works.
>>
>> Greetings,
>> Niek van Baalen
>>
>> David Huynh schreef:
>>   
>>     
>>> You can override the default behavior by including this script after you 
>>> include timeline-api.js:
>>>    
>>>
>>> Timeline._Band.prototype.openBubbleForPoint = function(pageX, pageY, width, 
>>> height) {
>>>     this.closeBubble();
>>>     
>>>     var div = ... where you want the content to go ...
>>>         
>>>     return div;
>>> };
>>>
>>>
>>> Cheers,
>>>
>>> David
>>>
>>> Niek van Baalen wrote:
>>>   
>>>     
>>>       
>>>> In my timeline events are dynamically filled from a database. That works 
>>>> fine.
>>>> The only problem I have is that the link opens in a new browser window.
>>>> I would like the to open in a seperate div on the same page.
>>>> Has anybody a solution for this?
>>>>
>>>> http://www.ikcro.nl/php/test/timeline/timeline10themaobject.php?thesaurusname=ikc-thema&days=30&soortlist=nieuwsarchief&concept=Ruimtelijke+Ordening
>>>>
>>>>  dateEvent.setTime("1185400800000");
>>>>       var evt = new Timeline.DefaultEventSource.Event(
>>>>          dateEvent, //start
>>>>          dateEvent, //end
>>>>          dateEvent, //latestStart
>>>>          dateEvent, //earliestEnd
>>>>          true, //instant
>>>>          "Enqu&#234;te Eurobarometer: Europese steden aangename plaatsen 
>>>> om te wonen en te werken" , //text
>>>>          "Samenvatting: Mensen wonen graag in steden en ze verwachten dat 
>>>> het in de toekomst nog aangenamer zal worden om er te wonen en te werken. 
>>>> Dat is een van de belangrijkste conclusies van een 
>>>> Eurobarometerenqu&#234;te over de leefkwaliteit in Europese steden. Meer 
>>>> dan 75% van de ondervraagden waren tevreden over de leefkwaliteit in hun 
>>>> stad en een meerderheid was optimistisch over de toekomst van hun stad. 
>>>> Hoewel de burgers over het algemeen tevreden zijn over de kwaliteit van de 
>>>> dienstverlening (onderwijs, gezondheidszorg, cultuur enz.), maken ze zich 
>>>> toch zorgen over onder meer de werkgelegenheid, de woonkosten en de 
>>>> verontreiniging. Volgens de commissaris voor Regionaal Beleid, Danuta 
>>>> H&#252;bner,&#34;blijkt uit deze enqu&#234;te dat de mensen over het 
>>>> algemeen tevreden zijn over het leven in de stad. Toch maken ze zich ook 
>>>> zorgen. De enqu&#234;te doet ons suggesties aan de hand voor toekomstige 
>>>> beleidsmaatregelen.&#34;<a href=\"http://www.ikcro.nl/php/newthem!
 a!
>>>>         
>  o!
>   
>>>>       
>>>>         
>>  b!
>>   
>>     
>>>>     
>>>>       
>>>>         
>>>  je!
>>>   
>>>     
>>>       
>>>>  ct.php\?id=323214\" target=\"showDiv1\">Link</a>Zie ook: - &#60;A 
>>>> HREF=&#34;http://europa.eu/rapid/pressReleasesAction.do?reference=IP/07/1178&#38;format=HTML&#38;aged=0&#38;language=NL&#38;guiLanguage=en&#34;
>>>>  TARGET=&#34;_blank&#34;&#62;De resultaten van de stedenaudit bieden een 
>>>> leidraad voor de ontwikkeling van Europa&#39;s steden&#60;/A&#62; 
>>>> (Inforegio nieuws, 26 juli 2007)&#60;br&#62;- &#60;A 
>>>> HREF=&#34;http://ec.europa.eu/regional_policy/urban2/audit_en.htm&#34; 
>>>> TARGET=&#34;_blank&#34;&#62; Urban Audit&#60;/A&#62;: An overview of the 
>>>> results in 70 cities in the 27 Member States of the European Union and 
>>>> five cities in Croatia and Turkey, as well as detailed results of the 
>>>> survey.&#60;br&#62;- &#60;A 
>>>> HREF=&#34;http://www.binnenlandsbestuur.nl/bb/area/access_13-3374-2.html?page=/bb/jsp/detailbydocid.jsp?wkdocid=WKNL-BB-NEWS-m25s667198&#34;
>>>>  TARGET=&#34;_blank&#34;&#62;Groningen: goed wonen en schone 
>>>> lucht&#60;/A&#62; (Binnenlands Bestuur, 27 juli 2007)&#60;br&#62; <a!
  !
>>>>         
>  h!
>   
>>>>       
>>>>         
>>  r!
>>   
>>     
>>>>     
>>>>       
>>>>         
>>>  ef!
>>>   
>>>     
>>>       
>>>>  =\"http://www.ikcro.nl/php/newthemaobject.php\?id=323214\"; target=\"sh
>>>> owDiv1\">Link</a>" , //description
>>>>          "" ,
>>>>          
>>>> "http://www.ikcro.nl/php/newthemaobject.php?idParse=link1&id=323214"; //link
>>>>       );
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> General mailing list
>>>> [email protected]
>>>> http://simile.mit.edu/mailman/listinfo/general
>>>>   
>>>>     
>>>>       
>>>>         
>>> _______________________________________________
>>> General mailing list
>>> [email protected]
>>> http://simile.mit.edu/mailman/listinfo/general
>>>
>>>
>>>
>>>   
>>>     
>>>       
>>
>> _______________________________________________
>> General mailing list
>> [email protected]
>> http://simile.mit.edu/mailman/listinfo/general
>>
>>
>>
>>   
>>     
>
>
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>   



_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to