Hi Henry

A similar example works fine for me.

You certanly must use double quotes around filenames, and you are missing the 
'files'
placeholder before the file names. Like this:

jmolRadio('set frank off; background white; load files "file1.pdb" "file2.pdb"; 
rotate z 0;
rotate y 60; rotate x -90; select all; spin off; wireframe off; spacefill off; 
trace off; set ambient 40;
set specpower 40; slab off; ribbons off; cartoons off; label off; monitor off; 
model 0; select 1.1;
trace; color green; select 2.1; trace; color blue; move 0 360 0 0 0 0 0 0 6', 
"", false );

Otherwise, only the first file is read.

To be sure, open the pop-up menu and check if you have 1 or 2 models loaded 
(topmost
submenu entry).


>     When I add the ""
>     around the file name, the push button disappears in the web page.

That may be a conflict between quotes in the javascript. Since Jmol needs 
double quotes for
the file names, you should use single quotes in the parameter for jmolRadio(), 
as I've done
above.

Oh, it seems that Jmol will also take single quotes for the filenames. Didn't 
know that.


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to