Thank you Michael,

Unfortunately at the moment I can not offer an online version. (Even
though it would help a lot).

Had realized that "tl" for some reason was not being introduced to the
scope, even trying to "tl" (var tl ... create ...) could succeed on
its own page in Firefox, but still have the same problem in internet
explorer when I have the result above I get "tl is undefined."

Is there anything I can do to circumvent this problem in IE?


NOTE:

I noticed that the double click function works fine in IE:


Timeline._Band.prototype._onDblClick = function (innerFrame, evt,
target) (
    var coords = SimileAjax.DOM.getEventRelativeCoordinates (evt,
innerFrame);
    var distance = coords.x - (this._viewLength / 2 -
this._viewOffset);

    this._autoScroll (-distance);
);


My purpose, as I mentioned above is just two buttons to the controller
to scroll the timeline, one in the right corner, another on the left.


Could I use it somehow as an action to the buttons without referring
to the so problematic "tl"?


Thank you.



On 27 abr, 12:07, Michael Nosal <[email protected]> wrote:
> This means that IE can't find a variable named "tl" in scope. This could be 
> due to the initialization of your timeline is failing in IE, or tl falling 
> out of scope after initialization.
>
> Do you have an example online?
> --Mike
>
> On Apr 27, 2010, at 10:02 AM, Marcos Mendes wrote:
>
>
>
> > Hi all,
>
> > I had two buttons at each end of a timeline for controlling the
> > horizontal scroll of the same.
>
> > For example:
>
> > <[bt]    TIMELINE    [bt]>
>
> > It worked in firefox but in internet explorer to check the following
> > error occurred:
>
> > "Error:" tl "is null or not an object"
>
> > The javascript code I'm using for the button functionality is this:
>
> > <script language="Javascript" type="text/javascript">
>
> >           function avancaTimeline(distance) {
>
> >                        tl.getBand(0)._autoScroll(distance);
>
> >                };
>
> > </script>
>
> > And I'm calling the function as follows:
>
> >  <!-- BT LEFT -->
>
> > onclick="javascript:avancaTimeline(500);
>
> >  <!-- BT RIGHT -->
>
> > onclick="javascript:avancaTimeline(-500);
>
> >  <!-- TIMELINE -->
>
> >  <div id="stl-mytimeline"><?php stl_simile_timeline(); ?></div>
>
> >  <!-- TIMELINE  -->
>
> > I appreciate any help.
>
> > Att,
> > Marcos Mendes
>
> > --
> > 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 
> > athttp://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 
> athttp://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.

Reply via email to