473,746 Members | 2,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE Error "Stop Running This Script"

Hi,

Sometime, when your script is too big,
IE Gives you a warning "Stop Running This Script"
A script on this page is causing Internet Explorer to run slowly.

Does anyone knows, How to correct that?

Thanks.
Oct 20 '08 #1
33 11629
On 2008-10-20 20:19, Sunny wrote:
Sometime, when your script is too big,
IE Gives you a warning "Stop Running This Script"
A script on this page is causing Internet Explorer to run slowly.

Does anyone knows, How to correct that?
This is not IE-specific, it happens in all browsers. If a script is
running non-stop for some time, for example because of an endless loop,
(modern) browsers offer you a chance to interrupt it.

If your script really has to work for a very long time, you could split
up execution into smaller parts. For example, if you're doing protein
folding calculations, or raytracing, or meteorological simulations with
javascript in a browser[0], you could run $n iterations, then call
setTimeout("con tinueCalculatio ns()", delay-in-ms) to do the next $n
iterations. Repeat and rinse.

([0] There are actually at least two raytracing implementations in
javascript. People are really going crazy these days. Not sure about the
protein folding, but I wouldn't be surprised.)
- Conrad
Oct 20 '08 #2
On Oct 20, 5:48*pm, Conrad Lender <crlen...@yahoo .comwrote:
On 2008-10-20 20:19, Sunny wrote:
Sometime, when your script is too big,
IE Gives you a warning "Stop Running This Script"
A script on this page is causing Internet Explorer to run slowly.
Does anyone knows, How to correct that?

This is not IE-specific, it happens in all browsers. If a script is
running non-stop for some time, for example because of an endless loop,
(modern) browsers offer you a chance to interrupt it.

If your script really has to work for a very long time, you could split
up execution into smaller parts. For example, if you're doing protein
folding calculations, or raytracing, or meteorological simulations with
javascript in a browser[0], you could run $n iterations, then call
setTimeout("con tinueCalculatio ns()", delay-in-ms) to do the next $n
Eval is evil.
Oct 22 '08 #3
David Mark wrote:
On Oct 20, 5:48 pm, Conrad Lender <crlen...@yahoo .comwrote:
>[...]
If your script really has to work for a very long time, you could split
up execution into smaller parts. For example, if you're doing protein
folding calculations, or raytracing, or meteorological simulations with
javascript in a browser[0], you could run $n iterations, then call
setTimeout("co ntinueCalculati ons()", delay-in-ms) to do the next $n

Eval is evil.
There is some truth in this, but what does it have to do with what you quoted?
PointedEars
--
var bugRiddenCrashP ronePieceOfJunk = (
navigator.userA gent.indexOf('M SIE 5') != -1
&& navigator.userA gent.indexOf('M ac') != -1
) // Plone, register_functi on.js:16
Oct 22 '08 #4
On Oct 22, 2:57*pm, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
wrote:
David Mark wrote:
On Oct 20, 5:48 pm, Conrad Lender <crlen...@yahoo .comwrote:
[...]
If your script really has to work for a very long time, you could split
up execution into smaller parts. For example, if you're doing protein
folding calculations, or raytracing, or meteorological simulations with
javascript in a browser[0], you could run $n iterations, then call
setTimeout("con tinueCalculatio ns()", delay-in-ms) to do the next $n
You don't see that?
Oct 22 '08 #5
David Mark wrote:
Thomas 'PointedEars' Lahn wrote:
>David Mark wrote:
>>On Oct 20, 5:48 pm, Conrad Lender <crlen...@yahoo .comwrote:
[...]
If your script really has to work for a very long time, you could split
up execution into smaller parts. For example, if you're doing protein
folding calculations, or raytracing, or meteorological simulations with
javascript in a browser[0], you could run $n iterations, then call
setTimeout(" continueCalcula tions()", delay-in-ms) to do the next $n

You don't see that?
See what?
PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee
Oct 22 '08 #6
On Oct 22, 4:22*pm, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
wrote:
David Mark wrote:
Thomas 'PointedEars' Lahn wrote:
David Mark wrote:
On Oct 20, 5:48 pm, Conrad Lender <crlen...@yahoo .comwrote:
[...]
If your script really has to work for a very long time, you could split
up execution into smaller parts. For example, if you're doing protein
folding calculations, or raytracing, or meteorological simulations with
javascript in a browser[0], you could run $n iterations, then call
setTimeout("c ontinueCalculat ions()", delay-in-ms) to do the next $n
You don't see that?

See what?
I guess you can't then (or you are being deliberately obtuse.)
Oct 22 '08 #7
David Mark wrote:
Thomas 'PointedEars' Lahn wrote:
>David Mark wrote:
>>Thomas 'PointedEars' Lahn wrote:
David Mark wrote:
On Oct 20, 5:48 pm, Conrad Lender <crlen...@yahoo .comwrote:
>[...]
>If your script really has to work for a very long time, you could split
>up execution into smaller parts. For example, if you're doing protein
>folding calculations, or raytracing, or meteorological simulations with
>javascri pt in a browser[0], you could run $n iterations, then call
>setTimeout ("continueCalcu lations()", delay-in-ms) to do the next $n
You don't see that?
See what?

I guess you can't then (or you are being deliberately obtuse.)
Or maybe you're imagining things plus you can't quote properly.
There are just so many possibilities ...
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8************ *******@news.de mon.co.uk>
Oct 22 '08 #8
On Wed, 22 Oct 2008 22:22:35 +0200, Thomas 'PointedEars' Lahn
<Po*********@we b.dewrote:
David Mark wrote:
>Thomas 'PointedEars' Lahn wrote:
>>David Mark wrote:
On Oct 20, 5:48 pm, Conrad Lender <crlen...@yahoo .comwrote:
[...]
If your script really has to work for a very long time, you could
split
up execution into smaller parts. For example, if you're doing protein
folding calculations, or raytracing, or meteorological simulations
with
javascrip t in a browser[0], you could run $n iterations, then call
setTimeout( "continueCalcul ations()", delay-in-ms) to do the next $n
[unquoted]
David: Eval is Evil
Thomas: What has that got to do with it?
[/unquote]
>You don't see that?

See what?
Aside from the fact he should indeed have quoted the posts in between:

'setTimeout("co ntinueCalculati ons()",deal-in-ms)'

vs.

'setTimeout(con tinueCalculatio ns,deal-in-ms)'
--
Rik
Oct 22 '08 #9
On 2008-10-22 23:24, Thomas 'PointedEars' Lahn wrote:
>>>>>On Oct 20, 5:48 pm, Conrad Lender <crlen...@yahoo .com>
>wrote:
>>setTimeou t("continueCalc ulations()", delay-in-ms) to do
You don't see that?
See what?
I guess you can't then (or you are being deliberately obtuse.)
Or maybe you're imagining things [..]
I suppose Mark was referring to '"continueCalcu lations()"' vs
'continueCalcul ations', and he's correct, after a fashion. What I wrote
was just an example, but even so I should have used a function reference
instead of a string. I thought the string would be easier to understand
in this particular case. So, it's my fault - can we settle this now?
- Conrad
Oct 22 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1972
by: ncf | last post by:
I'm having an odd problem. I'm getting an error from IDLE saying "End Of Line detected while scanning single-quoted string." Odd thing is, it's not single-quoted, it's one of the doc-strings (if that's what you call them). In the following code (class name replaced with <<<NAME>>>), the error is being highlighted as the hyphen joining "non" and "ASCII". class <<<NAME>>>: <<<CUT>>>
7
1439
by: markturansky | last post by:
I'd like to dynamically find and invoke a method in a Python CGI. In javascript, the running script is 'this' (Python's 'self'), except that 'self' is not defined. I want to do this: var m = this; //where the method name is passed via an http variable m(); //this invokes a method in javascript
1
2435
by: walterbyrd | last post by:
I understand that Python has them, but PHP doesn't. I think that is because mod_php is built into apache, but mod_python is not usually in apache. If mod_python was built into apache, would python still have long running processes (LRP)? Do LRPs have to do with a Python interpreter running all the time? Or is it something else? I also understand that LRPs are the reason that shared hosting is less
6
2677
by: auniqbal | last post by:
Hi, I am suing the "simple database script" from this website: http://bytes.com/serversidescripting/perl/tutorials/asimpledatabaseprogram/index.html See also file attached here. I can run the script fine from my Apache server but when I enter the record it says "Error - No Record Added " in order to run, I had to add "-w" next to the #!/usr/bin/perl statement, so now syntax is: #!/usr/bin/perl -w
0
8974
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8800
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9350
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9285
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8229
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6060
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4836
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2765
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2199
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.