Martin,
In that case, going to your server, you either:
a) stuff them into a hidden INPUT variable in a form in a frame and submit
the form (old way) or
b) send them off via AJAX to your server.
The AJAX is an interesting option, because you can even have Jmol do it. No
JavaScript at all. All you would do is set up a Jmol variable urlData and
then use the
var reply = load(urlData)
for example:
var reply = load("http://myserver.edu?POST?newData=" + getFileData())
Note that if it is to your own server, you don't need the signed applet, but
really, for professional research work, the signed applet is still the way
to go. Because then you can drag/drop into it and save full states, and all
sort of stuff like that.
Bob
On Thu, Sep 15, 2011 at 3:20 PM, Martin Hediger <[email protected]> wrote:
> Ok, thanks. I understand this would require a signed applet. Is that
> correct?
> However, what we are trying to do is that the coordinates get saved to
> the server (where the file name would be some kind of string composed of
> process ID/PDB code combination). We require the coordinates on the
> server, because it is there where they are submitted to a subsequent
> calculation. If I understood Angel's and your latest reply on my
> question, then saving to the server would not require a signed applet
> (and therefore my life a bit easier).
> I'll be trying your latest recommendation. Thanks for the support.
> Martin
>
> > You would add the script below, defining the function, to whatever
> > script you use when creating the applet. The code will then be there
> > from that point on, and you can issue just
> >
> > replacePDBCoords("?")
> >
> > to initiate a file save dialog that the user will use to save the file
> > somewhere on their machine.
> >
> >
> > Bob
>
>
>
> ------------------------------------------------------------------------------
> Doing More with Less: The Next Generation Virtual Desktop
> What are the key obstacles that have prevented many mid-market businesses
> from deploying virtual desktops? How do next-generation virtual desktops
> provide companies an easier-to-deploy, easier-to-manage and more affordable
> virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops? How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users