Everything is fine with JSmol integration in java server pages, but. I've got an "undefined" message under every imported window (.mol inside is ok). What's going wrong ? Have somebody an idea of the origin of this "undefined" ? Thanks.
Last edit: Laurent Garcia 2015-10-04
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for your reply, bob.
Here's an address you can go to and see it:
www.notiz.fr
Your login: hensonb 147852
On the front panel, you'll find a green play button to some items.
Thanks for watching.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for your reply, bob.
Here's an address you can go to and see it:
www.notiz.fr
Your login: hensonb 147852
On the front panel, you'll find a green play button to some items.
Thanks for watching.
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department 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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Robert
Thank you very much for this boost on my application. Everything is going fine now with your correction.
I have changed your account; it's now with the correct typo: hansonr (no longer hensonb). The password is available on your private email.
Encore merci, my students will appreciate too.
Laurent
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Everything is fine with JSmol integration in java server pages, but. I've got an "undefined" message under every imported window (.mol inside is ok). What's going wrong ? Have somebody an idea of the origin of this "undefined" ? Thanks.
Last edit: Laurent Garcia 2015-10-04
Need a little more info on that. BTW, the better list to use is Jmol's. https://lists.sourceforge.net/lists/listinfo/jmol-users
Send me a link to the page that is doing this, and I will take a look.
Thanks for your reply, bob.
Here's an address you can go to and see it:
www.notiz.fr
Your login: hensonb 147852
On the front panel, you'll find a green play button to some items.
Thanks for watching.
Yes, that was helpful. It is from something your code is adding to the page
just after a call to
Jmol.getAppletHtml(jmolApplet2)
in the element.
Ah, here it is:
$("#mol2").html(Jmol.getAppletHtml("jmolApplet2",
Info)+Jmol.script(jmolApplet2, 'load
/NotiZ/FTP/QuickCMFTP/MOL/'+molName));
Jmol.script(jmolApplet2, 'load /NotiZ/FTP/QuickCMFTP/MOL/'+molName))
has no return value; it is undefined.
Change that to include the start-up script in the Info:
Info = { width: 350,
height: 350, debug: false,
j2sPath: "/NotiZ/JSinclude/JSmol/j2s",
color: "0xC0C0C0",
disableJ2SLoadMonitor: true,
disableInitialConsole: true,
addSelectionOptions: false,
$("#mol2").html(Jmol.getAppletHtml("jmolApplet2", Info));
On Mon, Oct 12, 2015 at 11:30 AM, Laurent Garcia laurent-g@users.sf.net
wrote:
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department 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
Robert
Thank you very much for this boost on my application. Everything is going fine now with your correction.
I have changed your account; it's now with the correct typo: hansonr (no longer hensonb). The password is available on your private email.
Encore merci, my students will appreciate too.
Laurent