Shameer Khadar wrote: > I am a Jmol newbie. Currently using Jmol as a part of a webserver am > developing. > Everything works fine, except when I load my Jmol window from my cgi > program. > Jmol is generating an alert message > "In general, an absolute URL is not recommended for > codebaseDirectory. A > directory- or docroot-relative reference is recommended. If you > need to use > an absolute URL (because, for example, the JAR and data files are > on another > server), then insert a space before "\"http\" in your URL to avoid > this > warning message." > > I am using Jmol from my server. I tried to comment this alert > message in > Jmol.js. But still the alert message is coming. How to avoid this > alert > message.
Do as it says, insert a space before "\"http\" in your URL. You should be able to comment it out of the js - I did so at one stage - but it's pain as you'll have to do it again every release. But you should NOT have to deal with this. It is NOT the concern of the javascript whether or not you adopt what it thinks is good html practice, especially when it does not know what you are doing. This is a bad feature of the jmol.js and I wish the team would remove it. If it wants to provide advice, it should do so in a readme. And the readme should explain in moderate language the reasons for normally using relative references and not write nonsense about absolute references being evil. I've said this before and I'm saying it again and I'll continue to say so every time another potential user wastes time because of this. David ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

