Hi .. thanks for the response . I am currently using the 1.6.0.2 version and I always get that at that error in lines marked as below
function $A(iterable) { if (!iterable) return []; if (iterable.toArray) return iterable.toArray(); var length = iterable.length || 0, results = new Array(length); ==> while (length--) results[length] = iterable[length]; ==>return results; } Probably as you said it is getting iterated in a long loop . On Jul 17, 12:26 pm, "T.J. Crowder" <t...@crowdersoftware.com> wrote: > Hi, > > That's not nearly enough information to work with. For instance > (picking at random), what version of Prototype are you using? The > line number is not useful information without knowing what file it > refers to. 811 isn't a particularly significant line in either the > latest stable (1.6.0.3) or the latest beta (1.6.1 RC3). > > Generally speaking, you'll get that warning from browsers if you have > a loop that takes a long time to complete. For instance, something > like this will cause it on IE6 and probably later versions (untested): > > var i, e; > for (i = 0; i < 100000; ++i) { > e = document.createElement('p'); > p.innerHTML = "Line " + i; > document.body.appendChild(e); > > } > > You get the idea. If you have to do something really long, break it > up and yield execution periodically (untested): > > function addLotsOfParagraphs(index, limit) { > var e; > > e = document.createElement('p'); > p.innerHTML = "Line " + i; > document.body.appendChild(e); > ++index; > if (index < limit) { > arguments.callee.defer(index, limit); > }} > > addLotsOfParagraphs(0, 100000); > > Or it could be that you have an infinite loop somewhere, or that > you've tricked Prototype into having one. Without more information, > no saying what's going on... > > FWIW, > -- > T.J. Crowder > tj / crowder software / com > Independent Software Engineer, consulting services available > > On Jul 17, 4:59 pm, usha <vprathyusha.re...@gmail.com> wrote: > > > > > Hi > > > I am sometimes getting this warning : > > > " A script on this page may be busy, or it may have stopped > > responding.You can stop the script now, or you can continue to see if > > the script will complete. > > .../prototype.js:811" > > > I wanted to know how to avoid this warning . > > > thanks- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---