Right, something you are doing is messing that up. Have you tried the Jmol
command:


x = load("http://......./......%POST%....";)

just to see if that works? Jmol should take care of all the escaping.

Is this a form on your page, or are you using AJAX?

You should not have to escape posted data, although I don't know how ASP
handles that. What's the encoding? Take a look at
http://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data

Bob







On Sun, Dec 8, 2013 at 8:24 AM, Otis Rothenberger <osrot...@chemagic.com>wrote:

> Bob,
>
> This problem came up before and I dropped my original plan. Now I'm
> revisiting the issue.
>
> When I write a Jmol state file to server, a truncated file is written. I
> know I'm getting cut off at the first ampersand character in the file, but
> there may be other problem characters. I'm transferring the text
> information to the server as a POST. In general, do I need to url escape
> the text in a POST? It doesn't seem like this should have anything to do
> with URL GET escaping. Is there another text conversion I should be making?
>
> This could be something whacky with a Windows server and asp.NETscripting, so 
> maybe it's unique to this configuration.
>
> Otis
>
> --
> Otis Rothenberger
> o...@chemagic.com
> http://chemagic.com
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
>
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
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
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to