I am trying to set up a button on a web page with JSmol that will export an
x3d file.
I have the following for onclick

javascript:Jmol.script(jmolAppletsigned0,'write X3D default.x3d','Save
FILE');

but it fails saying that there is a syntax error unexpected token <

I'm rather puzzled because this works to export the state:

javascript:Jmol.script(jmolAppletsigned0,'write STATE default.spt','save
FILE');

What am I doing wrong?

I also have a second question:

Is it possible to to save the x3d file on the webserver rather than on the
users local machine? If so how would I do that?

Thanks in advance
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to