[jQuery] Re: Get rid of long-running script dialog box ?

2009-09-24 Thread Smeext

Well, first I'd like to thank you for participating in this
discussion.
  To answer Jonathan, you may be right, I am (or was ?) doing modular
exponentiations with large numbers.
I found out how to slightly improve efficiency, which means my script
is a bit faster, a good thing for time-based popups (Firefox/Chrome
(?) ..).
  But IE uses number of statements executed to know when to display
the warning. And I'm not sure I'll be able to split my function so it
requires less than 5 million instructions :/ (unless taking it from
scratch, ahaha).

S.



On 22 sep, 08:45, Jonathan Vanherpe (T  T NV) jonat...@tnt.be
wrote:
 Machin Pouet wrote:
  Hello all,

  I'd like to know if you have a way to disable the long-running script
  dialog boxes, as one can see many in this article :
 http://www.nczonline.net/blog/2009/01/05/what-determines-that-a-scrip...

  I can hardly split my processing into smaller chunks, and cannot ask
  clients to tweak their browsers or registry !

  I hope my call for help is in the right section, shouldn't it be the
  case, I apologize, but would appreciate any link to a potential solution.

  Looking forward to hear back from you,

  sincerely,

  S.

  From the article you linked:

 Brendan Eich, creator of JavaScript, is quoted as saying, [JavaScript]
 that executes in whole seconds is probably doing something wrong...

 And who are we do argue with him? You're probably using javascript for
 something you shouldn't use it for, or you have some kind of infinite
 loop. Could you give us an idea as to what exactly you're doing?

 Jonathan

 --www.tnt.behttp://www.tnt.be/?source=emailsig                *Jonathan 
 Vanherpe*
 jonat...@tnt.be mailto:jonat...@tnt.be -www.tnt.be
 http://www.tnt.be/?source=emailsig - tel.: +32 (0)9 3860441


[jQuery] Re: Get rid of long-running script dialog box ?

2009-09-22 Thread Jonathan Vanherpe (T T NV)

Machin Pouet wrote:

Hello all,

I'd like to know if you have a way to disable the long-running script 
dialog boxes, as one can see many in this article :

http://www.nczonline.net/blog/2009/01/05/what-determines-that-a-script-is-long-running/

I can hardly split my processing into smaller chunks, and cannot ask 
clients to tweak their browsers or registry !


I hope my call for help is in the right section, shouldn't it be the 
case, I apologize, but would appreciate any link to a potential solution.


Looking forward to hear back from you,

sincerely,

S.

From the article you linked:

Brendan Eich, creator of JavaScript, is quoted as saying, [JavaScript] 
that executes in whole seconds is probably doing something wrong...


And who are we do argue with him? You're probably using javascript for 
something you shouldn't use it for, or you have some kind of infinite 
loop. Could you give us an idea as to what exactly you're doing?


Jonathan

--
www.tnt.be http://www.tnt.be/?source=emailsig   *Jonathan Vanherpe*
jonat...@tnt.be mailto:jonat...@tnt.be - www.tnt.be 
http://www.tnt.be/?source=emailsig - tel.: +32 (0)9 3860441




[jQuery] Re: Get rid of long-running script dialog box ?

2009-09-21 Thread Mike Alsup

 I can hardly split my processing into smaller chunks

I'm sure that's not true.  If your script is running so long that it
causes the warning dialog to display then you must refactor it.