On Mar 26, 2006, at 8:29 p, Brian Salter-Duke wrote:

I raised this once before, and I may be out of date, but I'd like to
raise it again. It seems necessasry to use relative addresses for
jmol.js and the jmol directory in web pages. I can the see the principle i
here but it causes serious problems in two respects:-

1. When trying to incorporate jmol in wiki pages. One user doing this
reports that ../extensions/jmol is needed for it to work in preview and
./extensions/jmol when the article is saved (I could have these the
wrong way round). An absolute address would fix this. I can not even get
it to work like that user reports. I'm still struggling.

hi Brian,

do you mean adding something like this to your applet tag:

codebase="http://www.molvisions.com/jmol/";

?

as long as your Jmol jar files are located in the jmol dir, then it should work. I just tested it here, using apache and the unsigned applet.

as far as calling Jmol.js from an absolute url, well, I don't see why that wouldn't work. I have done this before with javascript files, and css files, too:

[[script type="text/javascript" src="http://www.molvisions.com/jmol/ Jmol.js"]][[/script]]


that said, I had better backtrack a little. ;-)

let me say that both are technically possible. however, you may be running into a peculiarity associated with Jmol.js; if so, I will have to defer to other folks on that point. it may be true that Jmol.js does not accept absolute url for the codebase; I don't know.



2. When using a cgi script in the cgi space to write a html page on the fly containing a jmol call. I did find a way to do this but it is messy and I still do not understand why what I have works, but it does. Again,
an absolute address would fix things.

this should be fairly straightforward as well. can you show us some demo code that fails?


regards,

tim
--
Timothy Driscoll                                em: [EMAIL PROTECTED]
molvisions - see. grasp. learn.                 ph: 919-368-2667
<http://www.molvisions.com/>                    im: molvisions
usa:virginia:blacksburg                         tx: [EMAIL PROTECTED]

"Anyone who considers arithmetical methods of producing random digits is, of course, in a state of sin." - J von Neumann




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to