469,289 Members | 2,265 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,289 developers. It's quick & easy.

dom.max_script_run_time value

Using java script i want to set the dom.max_script_run_time value.

Kindly any one help me.

Mar 22 '08 #1
5 8917
5,390 Expert Mod 4TB
hi ...

have a look here ... this is a mozilla preference ... and i assume you want to set it at runtime since you might have a long running script and you want to avoid the warning? ... therefor you would have to request enhanced privileges from the browser ... and i wouldn't recommend that way if it would be a public page. you could workaround the problem when the 'long-running' script returns 'inbetween' ... post the code and may be we could avoid the problem ... it is a very rare problem and sometimes we just need to optimize the runtime performance of the script ...

kind regards
Mar 22 '08 #2
I saw that page. But i dont want to set run time. If any configuration file is there to modify this value.

Thanks in advance....
Mar 25 '08 #3
5,390 Expert Mod 4TB
in the adress-bar type in about:config -> then type dom.max_script_run_time in the filter line below -> change the value in the line that appears below -> probably you have to restart FF ...

kind regards
Mar 25 '08 #4

when i use Firefox i got 'Unresponsive Script' pop-up...
and i know we can 'solve' this issue with the setting of 'dom.max_script_run_time' config variable(Type about:config in address bar)...

But my problem is --- I want to change 'dom.max_script_run_time' through 'javascript' code ...means when i will run my javascript ..it should automatic set the dom.max_script_run_time
and for this i need 'firefox' reference in java script to access that config value at client side...
Mar 26 '08 #5
5,390 Expert Mod 4TB
you said you didn't want to set it at runtime of your script ... now you say you want to set it at runtime ... and as i said you have to retrieve enhanced browser privileges ... start here to read about it ... and as i said this is not a secure method for your app since the user is asked to allow the setting and in case he will not do it you cannot set the preference ... so the correct way always is: optimize your script to avoid that long running time ...

kind regards
Mar 26 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by otto | last post: by
3 posts views Thread by Eric Chang | last post: by
13 posts views Thread by Stumped and Confused | last post: by
1 post views Thread by Dan | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.