To complete my previous post , it seeam that  when you use
Effect.multiple([elt_id, ...]) and when one of the elt_id is not found
on the page a fatal js error is thrown on IE. This "error on the page"
disable all other scriptaculous functions you could launch after that
on the same webpage.

Doesn't occur on Firefox. Any help appreciated :-) !!


On 20 mai, 04:08, itkin <> wrote:
> Hello,
> I'm deseperately looking for the solution of a weird behavior on IE7.
> I've this function, executed dynamically from a rjs (ror) template.
> Basically it slides down a list of produts labels, one after this
> other, in a "wave" maner.
> function slideLabelsDown(labelsContainer){
>         Effect.multiple($(labelsContainer).select('.sale_item_label'),
> Effect.SlideDown, {
>                 transition:Effect.Transitions.spring,
>                 speed:0.25,
>                 duration:5});
>         $('top_sale_item_labels_ajax_wrapper').fade({delay:0.3,duration:
> 0.2});
> }
> Well the duration of this script is supposed to be 5 seconds, but when
> you click on some other link before the function ends, you got the
> following error only on IE :
> Line 699
> Char 7
> 'element.down()' is null or not an object
> As far as I understand it doesn't find the current element to slide
> down because it has been dynamically removed with all the page sub
> content....
> So the error raises and then scipt aculous framework just stop
> working. This is really problematic for me since i use its functions
> intensivelly in quite every ajax call .
> Does anybody know how to prevent or handle this kind exception?? try
> {} catch(){} doesn't work ..
> Thanks in advance !!
> Nicolas
You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to