Hi,
I have it like this in use:
print load("/servlet/?POST?_PNGJBIN_&your_own=parameters");
So you send a POST request to your server and within is the PNGJ enclosed (in
binary form). Th server reads this request and can do something with the
received POST parameters (i.e. save them somewhere) and then send something
back to Jmol (i.e. I got and everything is OK) which is then printed in above
example. As far as I know you can only send the state (here in the PNGJ) via
load and there no write-to-server-via-POST functionality implemented in the
write command.
Best
Alexander
----- Ursprüngliche Mail -----
> Von: "Tamas Horvath" <[email protected]>
> An: [email protected]
> Gesendet: Freitag, 21. September 2012 13:51:30
> Betreff: Re: [Jmol-users] write command to server
> I'm trying to use a simple javascript command to do this. Something
> like:
>
> applet.scriptWait('write ....');
>
> How would this command look like in your case? I'm trying: 'write
> IMAGE 200 200 PNGJ 8 /servlet/?POST?_PNGJBIN_'
> but according to firebug no POST is actually happening.
>
>
>
>
> On 20 September 2012 19:29, Robert Hanson < [email protected] >
> wrote:
>
>
> smartest way is to use WRITE with a special mode that sends a full
> JMOL (zip format) file to your server. This file contains all the
> files necessary, and is simply sent back to Jmol to recreate the
> state. The key is to put this in the URL:
>
> ?POST?_PNGJBIN_
>
> This directs Jmol to post the binary of the PNGJ file (the full state,
> plus an image) to your server using x-application/stream. You can add
> whatever other parameters you want. It should work great.
>
>
>
>
>
> On Thu, Sep 20, 2012 at 8:00 AM, Tamas Horvath < [email protected] >
> wrote:
>
>
>
>
> Hi!
>
> I'm trying to send the current state of the model to my server, so it
> can store it for later use. According to the v13 doc, it is now
> possible, however I'd need to pass some parameters alongside the data
> so the server could properly handle it (like naming the file to be
> stored, etc.). How is that accomplished?
>
> Thanks,
> Tamas
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://ad.doubleclick.net/clk;258768047;13503038;j ?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
>
>
> --
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> Chair, Chemistry Department
> St. Olaf College
> Northfield, MN
> http://www.stolaf.edu/people/hansonr
>
>
> 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
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://ad.doubleclick.net/clk;258768047;13503038;j ?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
>
> ------------------------------------------------------------------------------
> Got visibility?
> Most devs has no idea what their production app looks like.
> Find out how fast your code is with AppDynamics Lite.
> http://ad.doubleclick.net/clk;262219671;13503038;y?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users