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 & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to