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
--~--~---------~--~----~------------~-------~--~----~
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