Thanks Michael. "tl" was in fact out of scope from IE's
perspective.
(Odd that chrome and ff did not complain...)
..now to get the lower band to display from the second event source...
again, this works in ff and chrome but not IE.
the first (top) band loads just fine (and I get no errors about tl,
thanks to you..), but the data does not make it into
the band for some reason.(I use the IE Developer toolbar to check out
the contents of various elements) All that ends
up in the lower band is a single timeline-event-label with a #text
element containing the letter "A". Following is a snippit
which I use to clear the original events, then stream in the new
events from the cgi script which runs the query and generates
the XML. I would appreciate it if you could take a quick glance and
let me know if there is something I am doing wrong. The
bands do load and display fine in other browsers, so I am fairly
certain that it is not the XML. If I switch the band sources, again
the top band will load and display fine, but the bottom band does not
get anything other than that single #text element.
Thanks again for the help with finding the scoping of the that tl
variable!
" Timeline.timelines[0]._bandInfos[0].eventSource.clear();
Timeline.timelines[0]._bandInfos[1].eventSource.clear();
if (r == "splocal_MOMwjwrpt_dept_downtime_detail") {
Timeline.timelines[0].showLoadingMessage();
tl.loadXML("../../../cgi-bin/dt.cgi?start_time=" + s +
"&end_time=" + e + "&phase=" + p + "&plant=" + l, function(xml, url)
{ eventSource.loadXML(xml, url); });
tl.loadXML("../../../cgi-bin/ot.cgi?start_time=" + a_s +
"&end_time=" + e + "&phase=" + p + "&plant=" + l, function(xml, url)
{ eventSource1.loadXML(xml, url); });
}"
wjw
On Oct 14, 8:29 am, Michael Nosal <[email protected]> wrote:
> That code is fine, it's what's used in the examples.
> Timeline can work perfectly fine with IE, it's just that IE tends to
> have really ambiguous error messages with Javascript, which makes it
> much harder to debug.
> Since IE is complaining about an object, look at the only object in
> this code: tl
>
> I'd guess that for some reason, your Timeline object tl isn't being
> created properly, or is not in global scope.
>
> Comment out the onResize code and see what IE complains about next.
>
> --Mike Nosal
>
> On Oct 13, 2009, at 5:55 PM, contemplative wrote:
>
>
>
> > I have the following which always breaks in version IE6 and IE7 (don't
> > know about 8 tho)
> > The error message is:
> > " A runtime error has occurred.
> > Do you wish to Debug? (I say yes here)
> > Line: 87
> > Error: Object doesn't support this property or method"
>
> > var resizeTimerID = null;
> > function onResize() {
> > if (resizeTimerID == null) {
> > resizeTimerID = window.setTimeout(function() {
> > resizeTimerID = null;
> > if (tl != null) tl.layout();
> > }, 500);
> > }
> > }
>
> > For the life of me! This timeline is a fantastic tool! But it does
> > not play well with IE.
> > The timeline works great in FF and Chrome on windows, and great in FF
> > on Linux, but
> > I have not been able to get past this. Is there some trick to get IE
> > to behave well with
> > timeline? I noticed that there was another post that pointed out some
> > code that implies
> > specific behaviors to IE regarding loading XML which I do not use...
>
> > Any help would be appreciated!
>
> > Thanks so much,
>
> > wjw
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---