Matt,

There was some list discussion of this a while back, and I'm still not sure 
what was recommended at the time. The discussion related to the use of the 
following in the <head> JavaScript prior to the <body> declaration:

var jmolApplet0;


I think the statement was made that this was no longer needed. I had some 
problems leaving it out, so I just continued to include it in my pages. If I 
have 10 JSmol objects in the body, I do 10 instantiations in the head.

Otis

--
Otis Rothenberger
o...@chemagic.com
http://chemagic.com




On Jan 16, 2014, at 9:00 AM, Kubasik, Matt <mkuba...@fairfield.edu> wrote:

> Bob,
> 
> The previous problem persists.  When I request the page to show a drop-down 
> menu of frames/frame names,  Chrome's javascript console still offers:
> 
> Uncaught ReferenceError:  JmolApplet0 is not defined.
> 
> Initializing jsmol is new to me.  Maybe I'm doing it wrong.   I have var Info 
> defined in the page's <head> tag and in <body> I have:
> 
> jmolApplet0 = Jmol.getApplet("jmolApplet0", Info)
> 
> Matt Kubasik
> 
> From: Robert Hanson <hans...@stolaf.edu<mailto:hans...@stolaf.edu>>
> Reply-To: 
> "jmol-users@lists.sourceforge.net<mailto:jmol-users@lists.sourceforge.net>" 
> <jmol-users@lists.sourceforge.net<mailto:jmol-users@lists.sourceforge.net>>
> Date: Thursday, January 16, 2014 2:22 AM
> To: 
> "jmol-users@lists.sourceforge.net<mailto:jmol-users@lists.sourceforge.net>" 
> <jmol-users@lists.sourceforge.net<mailto:jmol-users@lists.sourceforge.net>>
> Subject: Re: [Jmol-users] vibrate.htm for Gaussian output?
> 
> We identified a problem with jmolGetPropertyAsArray today, and that may be 
> the problem. Please try the version at
> 
> http://chemapps.stolaf.edu/jmol/zip/jmol-14.1.6_2014.01.15.zip
> 
> ___JmolVersion="14.1.6_dev_2014.01.15"
> 
> bug fix: GETPROPERTY command and function can return SV.toString() rather 
> than property escaped value
> bug fix: Jmol.getPropertyAsArray for certain arrays returns string "[object 
> Array]"
> 
> If that doesn't solve the problem, let me know.
> 
> Bob
> 
> 
> On Wed, Jan 15, 2014 at 6:34 PM, Kubasik, Matt 
> <mkuba...@fairfield.edu<mailto:mkuba...@fairfield.edu>> wrote:
> Dear Bob and List,
> 
> I've been trying to adapt Bob's vibrate.htm document to
> 
> 1.  read local Gaussian files (containing normal mode info) ;
> 2.  Provide a drop-down menu of the normal modes.
> 
> Non-working page is found here:
> www.neon22.com/jsmol/jsmol/jsmolvib700_e.htm<http://www.neon22.com/jsmol/jsmol/jsmolvib700_e.htm>
> 
> I think my problem is with the syntax of  jmol.getpropertyasarray.
> 
> Using
> 
> var InfoM = 
> Jmol.GetPropertyAsArray(JmolApplet0,"modelinfo.models.name<http://modelinfo.models.name>")
> 
> Gives the following int the javascript console:
> 
> Uncaught ReferenceError: JmolApplet0 is not defined
> 
> Any ideas?
> 
> Matt
> 
> PS A more direct adaptation for Gaussian files for vibrate.htm is here:
> http://www.neon22.com/jsmol/jsmol/vibrateMKd_6.htm
> This version produces a drop down list as with Bob's original vibrate.htm. 
> But for this version, the "read" button does not function. Hints for fixing 
> either attempt would be appreciated.
> 
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net<mailto:Jmol-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/jmol-users
> 
> 
> 
> --
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> 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
> 
> 
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today. 
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to