Re: [Jmol-users] JmolShell - A simple shell for Jmol presentations
> > > --On Monday, September 13, 2004 12:06 PM -0400 Miguel <[EMAIL PROTECTED]> > wrote: > >> Your file Support/JmolShell.js has some bad characters in it on lines >> 111 >> and 112. That prevents me from running. > > Hmmm > > The code around there is: > > === > // Used by HelpHTML definition (only) > function GetTblRw(txt1,txt2) > { > return "\" > + "\" + txt1 + "\<\/td\>" > + "\" + txt2 + "\<\/td\>" > + "\<\/tr\>"; > } > A little lower in the file. The line #111 is what was reported by the Mozilla JavaScript debugging console. When I pull down: http://copper.chem.umass.edu/~cmartin/JmolShell/Support/JmolShell.js It looks like to me that there are null characters in the file. I will send screen shots off list that will allow you to see what needs to be retyped. Miguel --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php ___ Jmol-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] JmolShell - A simple shell for Jmol presentations
--On Monday, September 13, 2004 12:06 PM -0400 Miguel <[EMAIL PROTECTED]> wrote: Your file Support/JmolShell.js has some bad characters in it on lines 111 and 112. That prevents me from running. Hmmm The code around there is: === // Used by HelpHTML definition (only) function GetTblRw(txt1,txt2) { return "\" + "\" + txt1 + "\<\/td\>" + "\" + txt2 + "\<\/td\>" + "\<\/tr\>"; } // === // Figure out which browser is running === I can't figure out what is wrong. This runs on both Macs and PCs here... How can I get information from the Java applet using JavaScript? Specifically, I'd like to put up a window that parses Jmol replies from user actions: id'ing atoms, getting distances, etc.? The only mechanism that currently exists is to parse the output from the MessageCallback handler. It is not pretty, but it is generally Chime-compatible. I can't find documentation for accessing MessageCallback from Javascript... Craig Martin Chemistry, LGRT 701 545-3299 http://www.chem.umass.edu/~cmartin --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php ___ Jmol-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] JmolShell - A simple shell for Jmol presentations
> First, thanks to Miguel for his help in getting my JmolShell package > together. Briefly, this package is for use by students in a Biomolecular > Structure course in the preparation of Jmol-based presentations on "their > favorite protein." It is trying to be as user-friendly as possible without > requiring the students to know much HTML or JavaScript programming. I want > them to focus on the science. > > A work in progress demo can be seen at: > http://www.chem.umass.edu/~cmartin/JmolShell/WingedHelixII > > and I welcome feedback. Craig, Your file Support/JmolShell.js has some bad characters in it on lines 111 and 112. That prevents me from running. > For those of you who have seen this previously, I re-wrote it to avoid the > use of frames. That was causing problems with invoking the Jmol.js library > routines. Since it is now "fancier," it breaks in old browsers. Q: What is it that is breaking the old browsers? > Any tips on detecting when I will and will not have > problems and alerting the user as such? I hope to add some detection of this type to the Jmol.js JavaScript library. But do not know when I will get around to it. > Question for the next phase: > > How can I get information from the Java applet using JavaScript? > Specifically, I'd like to put up a window that parses Jmol replies from > user actions: id'ing atoms, getting distances, etc.? > > I see from the following link: >http://www.rgagnon.com/javadetails/java-0171.html > that it is technically possible to get Java variables from JavaScript. Are > there hooks in Jmol right now? The only mechanism that currently exists is to parse the output from the MessageCallback handler. It is not pretty, but it is generally Chime-compatible. Miguel --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php ___ Jmol-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-users
[Jmol-users] JmolShell - A simple shell for Jmol presentations
First, thanks to Miguel for his help in getting my JmolShell package together. Briefly, this package is for use by students in a Biomolecular Structure course in the preparation of Jmol-based presentations on "their favorite protein." It is trying to be as user-friendly as possible without requiring the students to know much HTML or JavaScript programming. I want them to focus on the science. A work in progress demo can be seen at: http://www.chem.umass.edu/~cmartin/JmolShell/WingedHelixII and I welcome feedback. For those of you who have seen this previously, I re-wrote it to avoid the use of frames. That was causing problems with invoking the Jmol.js library routines. Since it is now "fancier," it breaks in old browsers. Any tips on detecting when I will and will not have problems and alerting the user as such? It works fine in Safari on my Mac (after the Developer upgrade of Java). Seems to work fine on the one PC I have tested it on. Question for the next phase: How can I get information from the Java applet using JavaScript? Specifically, I'd like to put up a window that parses Jmol replies from user actions: id'ing atoms, getting distances, etc.? I see from the following link: http://www.rgagnon.com/javadetails/java-0171.html that it is technically possible to get Java variables from JavaScript. Are there hooks in Jmol right now? Craig Martin Chemistry, LGRT 701 545-3299 http://www.chem.umass.edu/~cmartin --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php ___ Jmol-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-users