Hi Daniel, and welcome to the exciting Jmol world :-)

> Anyways, I have this error on my page that says: 
> codebaseDirectory is a required parameter to jmolInitialize 
> I am already aware that the problem is because my jmolinitialize call 
> looks like this: 
> jmolInitialize(""); 

For the current directory/folder, use a dot or dot+slash:
   jmolInitialize("."); 
   jmolInitialize("./"); 


> viewing the models. If the models are in a different directory I 
> couldnt figure out how to get it to work. 

It will work as long as the models are together or below the Jmol jar 
files.
For ex., you can have 
 mypage.html
 JmolApplet0.jar
 models/mymodel.pdb

then you do:
   jmolInitialize("."); 
   jmolApplet(300,"load  models/mymodel.pdb;")

or
 JmolApplet0.jar
 models/mymodel.pdb
 models/mypage.html

then you do:
   jmolInitialize("../"); 
   jmolApplet(300,"load mymodel.pdb;")

This is documented at
http://jmol.sourceforge.net/jslibrary/
(hopefully it's clear; if you think it can be improved, just tell me 
how)
Don't hesitate to write if you have any more trouble

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to