Daniel,
I mean like this:
var myJmol;
myJmol = Jmol.getApplet("myJmol", Info);
Actually, I use (with jmolApplet0) the following:
var jmolApplet0 = "jmolApplet0";
jmolApplet0 = Jmol.getApplet("jmolApplet0", Info);
But I think the declaration without assigning a value should work.
Otis
--
Sorry for the blank message. I'm using the var keyword now and the buttons
still don't work. I tested using the Control + Shift + J console in
Chrome, and myJmol is created as a Canvas2D object.
On Fri, Jun 14, 2013 at 4:01 PM, Daniel Barich wrote:
>
>
>
> On Fri, Jun 14, 2013 at 3:33 PM, Oti
On Fri, Jun 14, 2013 at 3:33 PM, Otis Rothenberger wrote:
> Daniel,
>
> Try a global declaration of myJmol - i.e.
>
> var myJmol;
>
> Otis
>
>
> --
> Otis Rothenberger
> o...@chemagic.com
> http://chemagic.com
>
>
>
>
> On Jun 14, 2013, at 3:24 PM, Daniel Barich wrote:
>
> I added a DOCTYPE and an
Daniel,
Try a global declaration of myJmol - i.e.
var myJmol;
Otis
--
Otis Rothenberger
o...@chemagic.com
http://chemagic.com
On Jun 14, 2013, at 3:24 PM, Daniel Barich wrote:
> I added a DOCTYPE and an html tag at the top, but the buttons still don't
> work.
>
>
> On Fri, Jun 14, 2013
I added a DOCTYPE and an html tag at the top, but the buttons still don't
work.
On Fri, Jun 14, 2013 at 3:02 PM, Otis Rothenberger wrote:
> Hi Angel and Daniel,
>
> I can't see any JavaScript errors either, but as I play with it in my
> error/code console, I see myJmol as being undefined. Someth
Hi Angel and Daniel,
I can't see any JavaScript errors either, but as I play with it in my
error/code console, I see myJmol as being undefined. Something's messing up
myJmol as a global window property even though the applet is loading.
I do not see an initial html tag. JavaScript global variab
Oops, I had converted the page from jmol and forgot the correct syntax for
jsmol. I fixed the syntax, but the buttons still don't work. I cleared
the cache, but it still doesn't work:
http://biology.kenyon.edu/BMB/Chime2/2002/T4injector/FRAMES/start.htm
Daniel
On Fri, Jun 14, 2013 at 1:31 P
Hi Daniel
I am not seeing javascript errors. The buttons d not work, but their
syntax is wrong. You have
Jmol.jmolButton("select all; wireframe on; etc
and you need
Jmol.jmolButton(myJmol, "select all; wireframe on; etc
---
Hi everybody,
Could somebody look at this page for me? The molecule loads, but none of
the buttons work. The JavaScript console shows an undefined method in
jsmol.min.js even though I set up the latest download from SourceForge.
http://biology.kenyon.edu/BMB/Chime2/2002/T4injector/FRAMES/start.
Thank you, Dave, that's good to know. I was somewhat puzzled by the
difference in behaviour.
Anyway, my data originally had the newlines which I was replacing
with vertical bars, so I'm ok without the code fix. I just need to
pass the original string without modification.
--
10 matches
Mail list logo