|
Prev: getting computed style for Img width and height
Next: Mind.html version of MindForth updated 2008 April 22
From: Dr J R Stockton on 23 Apr 2008 15:44 In comp.lang.javascript message <480ee566$0$14359$e4fe514c(a)news.xs4all.n l>, Wed, 23 Apr 2008 09:29:48, Erwin Moller <Since_humans_read_this_I_am _spammed_too_much(a)spamyourself.com> posted: > >My Firefox notices long running scripts and offers to abort them after >a while. >What browser are you using? My Opera does not, which was useful today when I had code to check several Easter algorithms for 5700000 years, at about 2000 years per second. My IE6 would allow longer and longer intervals between successive warnings, but my IE7 warns every 31000 years or so - tiresome. It would be nice to have a list of whether/how that can be changed for various browsers. Obviously it ought not (by default) to be possible to do it be code, but it would be good for a programmer to be able to ask a user to make the change. It would also be nice if the warning box had a control to disable the feature for the current action or page. -- (c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME. Web <URL:http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms & links; Astro stuff via astron-1.htm, gravity0.htm ; quotings.htm, pascal.htm, etc. No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.
From: slebetman on 24 Apr 2008 01:13 On Apr 24, 3:44 am, Dr J R Stockton <j...(a)merlyn.demon.co.uk> wrote: > In comp.lang.javascript message <480ee566$0$14359$e4fe5...(a)news.xs4all.n > l>, Wed, 23 Apr 2008 09:29:48, Erwin Moller <Since_humans_read_this_I_am > _spammed_too_m...(a)spamyourself.com> posted: > > > > >My Firefox notices long running scripts and offers to abort them after > >a while. > >What browser are you using? > > My Opera does not, which was useful today when I had code to check > several Easter algorithms for 5700000 years, at about 2000 years per > second. > > My IE6 would allow longer and longer intervals between successive > warnings, but my IE7 warns every 31000 years or so - tiresome. > > It would be nice to have a list of whether/how that can be changed for > various browsers. For Firefox you can change dom.max_script_run_time (defaults to 10 seconds) with about:config
From: Jeremy J Starcher on 24 Apr 2008 14:19 On Wed, 23 Apr 2008 12:00:16 -0700, Bill Mill wrote: > I could, for example, solve this problem by writing a javascript > interpreter in javascript, then executing the user's code in my > interpreter, which checks for a user interrupt before each operation and > stops if there has been one. (right?) So this problem is not impossible, > but it is a big pain. It also does not intrinsically require either > threads or a solution to the halting problem. I wrote a BASIC compiler and VM in Javascript (GPLed) once. To say it was a big pain would be an understatement and performance ... suffered. Does, however, make a nice test of UA's Javascript speed. ;)
First
|
Prev
|
Pages: 1 2 3 Prev: getting computed style for Img width and height Next: Mind.html version of MindForth updated 2008 April 22 |