Re: [Jmol-users] Problem with pmesh

2006-07-15 Thread Angel Herraez
Pat, you have quote problems. That's the reason for the javascript error. You 
cannot use 
double-quotes inside double-quotes, but you must alternate single quotes with 
double quotes.
Since the pmesh command requires filename in double quotes, you have to use 
single 
quotes outside
Try this:

  
jmolApplet(600, 'load models/7015glide.pdb; pmesh myPlane
 "models/pmesh.txt"; cpk 0; wireframe off;' +
'select (atomno>=1 and atomno<=27);' +
'cpk 0.30; wireframe 0.10; set unitcell on; color
 unitcell black; select silicon; color LimeGreen; ' +
'select carbon; color LightGrey; zoom 60');
  




-
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
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


[Jmol-users] Problem with pmesh

2006-07-15 Thread P.J. Carroll
I am having a problem with the pmesh command. I am using the 
following in my html file (using firefox under Mac OS X) to load a 
model:

  
jmolApplet(600, "load models/7015glide.pdb; pmesh myPlane 
"models/pmesh.txt"; cpk 0; wireframe off;" +
"select (atomno>=1 and atomno<=27);" +
"cpk 0.30; wireframe 0.10; set unitcell on; color 
unitcell black; select silicon; color LimeGreen; " +
"select carbon; color LightGrey; zoom 60");
  

The Jmol applet is not loading and the javascript console is giving 
the error message:

Error: missing ) after argument list
Source File: http://macxray.chem.upenn.edu/cells/7015glide2.html
Line: 67, Column: 64
Source Code:
jmolApplet(600, "load models/7015glide.pdb; pmesh myPlane 
"models/pmesh.txt"; cpk 0; wireframe off;" +



The html file works OK without the pmesh command. I assume it 
has something to do with the quotes!


Thanks,
Pat Carroll
U of Penn
X-ray Facility



-
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
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Delaying loading the web applet - re Jmol on Wikipedia

2006-07-15 Thread Angel Herraez
Brian,

I have written a small prototype of how this could be done.
The files, including Jmol files, sum up 845 kb, so I am not sending it to the 
list 
You can test it at
http://biomodel.uah.es/pruebas/jmol/pop-up_Jmol/pop-up_Jmol.htm
If you prefer, you can get it all zipped at
http://biomodel.uah.es/pruebas/jmol/pop-up_Jmol/pop-up_Jmol.zip
It can be polished; tell me what you miss




-
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
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users