Eric, actually, there's an even better way if you can use jmolScriptWait(). I'll elaborate in another message. You will like it.


Eric Martz wrote:

Thanks, Bob,

I agree that the "document title" report is better than the console, and I didn't know about it.

But I still insist that we need something one can't miss. The document title report mechanism means I have to stare at the document title while I'm running scripts. I can still miss an error if I am absorbed in script development. The fact that I didn't know about the document title report says it all!

I still argue that we need an alert that "you can't miss", even when you're not thinking about errors or looking for them.

Netscape 4.x has a setting that opens an alert popup when a javascript error occurs. This is fantastically useful. MSIE does the same, although its error report is nearly useless -- but at least you know there is an error. I have not found how to trigger these kinds of "can't miss" alerts in Gecko browsers (Firefox) and this is a serious disadvantage in my work. I have to manually open the javascript console, and watch it for errors -- a situation rather like the Jmol console and not at all satisfactory. I'm sure I've missed some.

-Eric

At 5/5/06, you wrote:

Eric Martz wrote:

I am often frustrated by errors in my scripts that cause the script to silently stop execution (to wit my recent erroneous report of a pickCallback failure).

I think we need a mechanism in the applet to alert developers when a script error occurs -- an alert that cannot be overlooked.

This is certainly something I've worried about. What if when you use

set debugscript on

and you are using the applet interface, error messages are also recorded in the DOCUMENT TITLE at the top of the page? I've been doing this with some of my pages, and it seems to work well. This, it seems to me fits the bill, because it is unobtrusive, obviously for the developer (because debugscript is on), and can't be missed. Because it is a single line, it only records the particular error you are interested in.

Bob




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

--

Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107
Professor of Chemistry, St. Olaf College
1520 St. Olaf Ave., Northfield, MN 55057
mailto:[EMAIL PROTECTED]
http://www.stolaf.edu/people/hansonr

"Imagination is more important than knowledge."  - Albert Einstein


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to