Actually, Eric, that little code I suggested would just send the browser
into an endless loop. The message you get back from the loadStructCallback
is just the standard "zapped" message.
You want an errorCallback:
JmolScript("set errorCallback 'myErrorCallback'")
function myErrorCallback(appId, errorMsg, scriptErrorMsg) {
....
}
That's if you don't care if loading a bad model trashes the current model.
Again, if you want to avoid that, use the Jmol load() command.
Bob
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users