Kudos on incredibly comprehensive fault analysis! Sent from my iPhone
On Sep 9, 2011, at 10:27 AM, Michael Nosal <[email protected]> wrote: > Your XML data file, ausHistory.xml includes the event attribute 'Id', not 'id' > > <event Id="e659" start="Wednesday, 3 January 1900, 12:00:0 UTC" > title="Electric lighting is installed on Adelaide streets." > image="../Media/AusHistory/TOOTnopic.png"> > Electric lighting is installed on Adelaide streets. <div > class="cat-bg-bubble1"></div> > </event> > > Timeline is looking for an event attribute 'id' all lowercase. If it doesn't > find one, it creates one for you. > Your second XML data file ausPM.xml contains no id attributes, so Timeline > creates event id's for those events as well. > Since ausPM.xml is a very small file, it is returned and loaded *first* even > though the call to loadXML executes after the call to load ausHistory.xml, > which takes longer to respond. > Thus, Timeline starts counting events e1, e2, etc. for the ausPM.xml events. > When it gets to ausHistory.xml, it starts numbering those event id's starting > at e33, e34, etc. That's why you are opening bubbles for the wrong events. > > If you've already loaded the page, and hit refresh, both .xml files are in > the browser cache, and the browser starts processing ausHistory.xml *first* > this time, and the event id's generated by Timeline match what you were > expecting. > > Change the Id attribute to id and that should fix the problem. > You might consider adding event id's to the ausPM events if you are adding > them to the same event source as the ausHistory.xml file. > > --Mike > > On Sep 8, 2011, at 7:35 PM, ZermattMan wrote: > >> I am working on a Timeline you can see here. >> >> http://www.timelinesofourtimes.com/ausHistory.aspx >> >> I have a dropdown list I am using to move to major events on the >> timeline. This works fine in IE 7, but it doesn't usually work in >> Google Chrome. >> >> Code for Drop down list: >> >> <select id="Nine01" onchange="openBubble(this.value);"> >> <option value="e1">Captain Cook charts the eastern >> coast</option> >> <option value="e5">First Fleet arrives in Botany >> Bay</option> >> <option value="e18">Mutiny on the Bounty occurs</ >> option> >> <option value="e669">Australia becomes a >> federation</option> >> <option value="e1542">Gough Whitlam's Government >> elected</option> >> </select> >> >> Data records look like this: >> >> <event Id='e5' start="Saturday, 26 January 1788, 12:00:0 UTC" >> title="The British First Fleet, led by Governor of New South >> Wales..." image="../Media/AusHistory/TOOTnopic.png" >The British >> First Fleet, led by Governor of New South Wales, Governor Arthur >> Phillip arrives in New South Wales to found first European settlement >> and penal colony at Sydney. Colony includes "all the islands adjacent >> in the Pacific Ocean" and running westward to the 135th meridian >> east. This claim included the islands of New Zealand, which were >> administered as part of New South Wales. >> </event> >> >> In Google, sometimes the TL doesn't move at all, and at other times it >> goes to the wrong event. >> Often Google will act correctly if I refresh the page AND then click >> on timeline and press the Home key! >> >> I have similar problem in FireFox. >> >> Any help is appreciated >> >> -- >> You received this message because you are subscribed to the Google Groups >> "SIMILE Widgets" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/simile-widgets?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "SIMILE Widgets" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/simile-widgets?hl=en. -- You received this message because you are subscribed to the Google Groups "SIMILE Widgets" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/simile-widgets?hl=en.
