On Sun, Mar 26, 2006 at 09:33:06PM -0500, Timothy Driscoll wrote: > 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/"
Well the instructions say that anything that starts with http is <b>evil</b>! I have never used codebase. My problem right now is working within a wiki and that is quite different from normal html. See:- http://meta.wikimedia.org/wiki/User:NicoV/Jmol_Extension and:- http://fahwiki.net/index.php?title=Jmol_MediaWiki_Extension I am trying to repeat the latter on another wiki. It is these lines in the php script that are the problem:- "<script src='/extensions/jmol/Jmol.js' type='text/javascript'></script>\n". "<script>\n" . "jmolInitialize('/extensions/jmol');\n". It is not clear these should be /extension/.. or ../extension/.. or even ./extension/... All seem to have been used and one guy claims that with the second it works with the wiki preview but not after saving, and with the third the other way round. > ? > > 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]] I guess we will try that, but we are told in the instructions very clearly to not do so. Perhaps Miguel will comment. > > 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? The problem here is that the cgi tree is often quite different from the htdocs tree. Writing a page on the fly, you are in the cgi tree, not the htdocs tree. I used a set of soft links to fix it up, but I do not recall exactly how. Regards, Brian. > 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 -- Brian Salter-Duke (Brian Duke) [EMAIL PROTECTED] Post: 626 Melbourne Rd, Spotswood, VIC, 3015, Australia Phone 03-93992847. http://members.iinet.net.au/~linden1/brian/ Honorary Researcher Fellow, Dept. of Medicinal Chemistry, Monash Univ. ------------------------------------------------------- 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

