Bob,

I had to work harder to "break" it, but I can still get the error. The error 
occurs on page loading. I still have the bindings in the load script, and the 
bindings seem to work - unbind actually. I unbind "_slideZoom" and "DOUBLE" in 
the load script.

When this happens, my page isn't broken, and my users don't even see it. I trap 
the error. I marked the error event by making the Calc button change from a 
"Calc" to a "calc" label. I did this just to keep my eye on frequency of the 
error. When it was still there with jsmol/JSmol.min.js, I sent a note to the 
list.

When is a bug not a bug?

Otis

--
Otis Rothenberger
[email protected]
http://chemagic.com




On Feb 25, 2013, at 10:45 PM, Robert Hanson wrote:

> I've fixed it, I think. See 
> 
> http://chemapps.stolaf.edu/jmol/jsmol.zip
> 
> Bob
> 
> 
> On Mon, Feb 25, 2013 at 9:35 PM, Otis Rothenberger <[email protected]> 
> wrote:
> Well, that's likely. I set them up 2 of them in the load script. I don't have 
> to do that, so I'll move them and see what happens.
> 
> Thanks
> 
> Otis
> --
> Otis Rothenberger
> [email protected]
> http://chemagic.com
> 
> 
> On Feb 25, 2013, at 10:27 PM, Robert Hanson wrote:
> 
>> These are due to mouse events such as mouse move over the applet. I'll bet 
>> they are being set up too soon in the process, not waiting until the applet 
>> is set up. 
>> 
>> 
>> On Mon, Feb 25, 2013 at 9:08 PM, Otis Rothenberger <[email protected]> 
>> wrote:
>> Bob,
>> 
>> Erratically, I get the following error on JSmol page load:
>> 
>> TypeError: 'null' is not an object (evaluating 'k.applet._applet.viewer') 
>> 226 http://chemagic.com/jsmol/JSmol.min.js
>> 
>> I take it that this is the JSmol.min.js equivalent of an erratic error that 
>> I have seen before switching to JSmol.min.js:
>> 
>> TypeError: 'null' is not an object (evaluating 
>> 'canvas.applet._applet.viewer') 195 http://chemagic.com/JSmol/JSmol.js
>> TypeError: 'null' is not an object (evaluating 
>> 'canvas.applet._applet.viewer') 152 http://chemagic.com/JSmol/JSmol.js
>> 
>> Even before switching to JSmol.min.js, I started to trap this error and 
>> ignore it because the error allows successful loading and nothing seems 
>> broken. The page seems to work just fine.
>> 
>> I'm just curious. Do you have any idea what's throwing this error?
>> 
>> Otis
>> 
>> --
>> Otis Rothenberger
>> [email protected]
>> http://chemagic.com
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>> 
>> 
>> 
>> -- 
>> Robert M. Hanson
>> Larson-Anderson Professor of Chemistry
>> Chair, Chemistry Department
>> St. Olaf College
>> Northfield, MN
>> http://www.stolaf.edu/people/hansonr
>> 
>> 
>> If nature does not answer first what we want,
>> it is better to take what answer we get. 
>> 
>> -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
>> 
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
> 
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
> 
> 
> 
> 
> -- 
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> Chair, Chemistry Department
> St. Olaf College
> Northfield, MN
> http://www.stolaf.edu/people/hansonr
> 
> 
> If nature does not answer first what we want,
> it is better to take what answer we get. 
> 
> -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb_______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to