Menu

Undefined under JSmol window

2015-10-03
2015-10-31
  • Laurent Garcia

    Laurent Garcia - 2015-10-03

    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
  • Bob Hanson

    Bob Hanson - 2015-10-05

    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.

     
  • Laurent Garcia

    Laurent Garcia - 2015-10-12

    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.

     
    • Bob Hanson

      Bob Hanson - 2015-10-13

      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,

                              script: 'load /NotiZ/FTP/QuickCMFTP/MOL/'+molName
      
                           };
      

      $("#mol2").html(Jmol.getAppletHtml("jmolApplet2", Info));

      On Mon, Oct 12, 2015 at 11:30 AM, Laurent Garcia laurent-g@users.sf.net
      wrote:

      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.


      Undefined under JSmol window
      https://sourceforge.net/p/jsmol/discussion/general/thread/d36a7f06/?limit=25#08f9


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/jsmol/discussion/general/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      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

       
  • Laurent Garcia

    Laurent Garcia - 2015-10-31

    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

     

Log in to post a comment.