From: Philip B. <pb...@sa...> - 2006-08-18 23:20:47
|
Bob: This is the message I get in the javascript console when I use the links on the popup. Phil Error - java.net.MalformedURLException: no protocol: http://www.stolaf.edu/academics/chemapps/jmol/docs/popupscript.js On Aug 18, 2006, at 2:04 AM, Bob Hanson wrote: > Frieda, or anyone else with this Mac problem: > > If you are willing, we can test this on your machine. I've added a > little feature to that page that lets us test your browser. > > 1) go to http://www.stolaf.edu/academics/chemapps/jmol/docs > > 2) pop up the "atom expressions" example > > ------------------------------------------- > Test 1: Is it using the Object code for the applet? You should see > just > under the applet: > ------------------------------------------- > > Jmol Version 11.0(beta) 2006/08/15 using Jmol-11.js > <imap://ha...@ma...:143/fetch%3EUID%3E/Drafts%3E308? > part=1.2&filename=Jmol-11.js> > object applet > > If not, that's ok. Just tell me what it says. > > 3) Carry out each of the following tests by typing into the VERY FIRST > LINE of the text area and each time pressing [ Execute ] (not just the > ENTER key). Pleaes report back to me what you get. What we are looking > for is the command that will get that applet function to report back a > nice message about the applet. Feel free to experiment. > > ------------------------------------------- > Test 2: Does my test work at all? > ------------------------------------------- > > js: 1+2 > > You should see an alert that says "3", because I have "js:" coded to > mean "run this as JavaScript". If you don't get that, don't continue. > Try loading > http://www.stolaf.edu/academics/chemapps/jmol/docs/popupscript.js once > or twice to force your cache to clear. You should get a version that > reads > > // popupscript.js for Jmol interactive script documentation > // 11:41 PM 8/17/2006 > > at the top. Then repeat step (1) > > ------------------------------------------- > Test 3: Is the document found? > ------------------------------------------- > > js:document > > You should get something like "object HTMLDocument" > > ------------------------------------------- > Test 4: How can we address the applet? > ------------------------------------------- > > js:document.jmolAppletX > > OK, this is probably going to be the problem. You should get something > like "object HTMLObjectElement" or some fancy expression including > height and width or something. Some OSs will give "undefined", which > means this isn't the way to find the applet. But there are several > other > ways. Try ALL of these (even if the above works, please). > > js.document["jmolAppletX"] > js:document.getElementById("jmolAppletX") > js:document.applets[0] > js:document.applets["jmolAppletX"] > js:document.getElementsByTagName("jmolAppletX") > > If none of those return anything useful, you are on your own. I don't > know what to suggest. > > > ------------------------------------------- > Test 5: Can we access the applet functions? > ------------------------------------------- > > For all the return something interesting, try adding ".getAppletInfo" > So, for example: > > js:document.getElementById("jmolAppletX").getAppletInfo > > This should return something about this being "native code". BUT, on > SOME MAC SYSTEMS, even if this step works, LiveConnect, which allows > running those functions, still doesn't work. > > ------------------------------------------- > Test 6: Can we call any applet function? > ------------------------------------------- > > Provided that worked, now try adding the empty parentheses. My > experience is that on some Macs even if you find the applet, even > if you > can see that there is a function there, you still cannot actually > run it. > > > js:document.getElementById("jmolAppletX").getAppletInfo() > > If none of these gives a nice message about the applet version and > sourceforge, we're out of luck. > > ------------------------------------------- > Test 7: Can we run a Jmol script? > ------------------------------------------- > > Final mission: Find the equivalent way on your machine to do this: > > js:document.getElementById("jmolAppletX").scriptWait("background red") > js:document.getElementById("jmolAppletX").scriptWait("load > caffeine.xyz") > > If you can find that, we are in business. If not, I don't know what to > suggest. As I remember sometimes what is happening is that the popup > window no longer has access to the resources of the original page -- > namely the files in the directory of the JAR file. Look for any > sort of > console error or JavaScript error you can find. > > > Thanks, > > > Bob > > > Frieda Reichsman wrote: > >> >> On Aug 16, 2006, at 9:38 PM, Bob Hanson wrote: >> >>> OK, I'm catching on. Please give this a whirl on your Mac: >>> >>> http://www.stolaf.edu/people/hansonr/jmol/docs >>> >>> There's a slight chance that it will work. >> >> >> Hi Bob >> >> Didn't catch up with this until the pages were moved to your new URL, >> but I checked there and they still seem to have exactly the same >> problem on my Mac. :^( Thanks for trying... >> >> Frieda >> >> >> >> /////////////////////////////////////////// >> >> >> Frieda Reichsman, PhD >> >> Molecules in Motion >> >> Interactive Molecular Structures >> >> http://www.moleculesinmotion.com >> >> >> /////////////////////////////////////////// >> >> >> >> --------------------------------------------------------------------- >> --- >> >> --------------------------------------------------------------------- >> ---- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=120709&bid=263057&dat=121642 >> >> --------------------------------------------------------------------- >> --- >> >> _______________________________________________ >> Jmol-users mailing list >> Jmo...@li... >> https://lists.sourceforge.net/lists/listinfo/jmol-users >> >> > > > ---------------------------------------------------------------------- > --- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Jmol-users mailing list > Jmo...@li... > https://lists.sourceforge.net/lists/listinfo/jmol-users J. Philip Bays Professor of Chemistry Science Hall 158 Saint Mary's College Notre Dame IN 46556 (574) 284-4663 |