View Single Post
Old 12-06-2012, 08:52 PM   PM User | #5
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,532
Thanks: 0
Thanked 503 Times in 494 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
Quote:
Originally Posted by rnd me View Post
where is that screenshot from? it looks ancient...

none of the 4 current major browsers (ch/ie/sa/ff) i tested have that interface, so i don't think normal people will be disabling scripts from that.

from a browser-ui viewpoint, that's just asinine design: My mom doesn't even know what scripts are, much less what the poor guys did to deserve execution...
It is MODERN - the browsers that don't display the debugging checkboxes in the dialogs are the ancialt ones.

Prior to 2005 alert confirm and prompt used to be the main ways JavaScript interacted with visitors to the page. Since then forms and being able to update the page itself have replaced those antiquated limited ways of interacting. That means that alert etc are now only useful for quick debugging of code and so extra checkboxes have been added to those dialogs to make them easier to use for debugging.

The prior screenshot is from the CURRENT version of Opera.

Firefox and Chrome both put a similar checkbox into all alerts generated by the page apart from the first one - but instead of disabling JavaScript completely checking that checkbox simply stops any further alert confirm or prompt dialogs from displaying in the page.

Here's a screenshot of an alert from the CURRENT version of Firefox (where the alerts are simply counting with the first alert displaying '1' and this being the second alert).



The alerts generated in the CURRENT version of Chrome are part way between the two with a title bar similar to Opera and content similar to Firefox.

Internet Explorer is the only popular browser that doesn't display these additional checkboxes to aid in debugging (unless they have caught up with the other browsers with version 10 as I don't have a copy of IE10 to test with yet).


ALL of the current browser versions except IE display debugging checkboxes in their alert confirm and prompt dialogs. It is as you say just asinine design on the part of the script author to display these checkboxes to your mom and others that don't know what scripts are - that's why I suggested getting rid of them before other people have access to your page.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/

Last edited by felgall; 12-06-2012 at 09:05 PM..
felgall is offline   Reply With Quote