-
1. Re: Post string without form?
Adam Cameron. May 13, 2013 3:37 PM (in response to WolfShade)Couldn't you knock together a test of this in about 5min?
--
Adam
-
2. Re: Post string without form?
WolfShade May 14, 2013 5:50 AM (in response to Adam Cameron.)xhr.open("POST","/path/to/action_page.cfm",false);
xhr.setRequestHeader("Content-type","x-www-form-urlencoded");
xhr.setRequestHeader("Content-Encoding","utf-8");
var thisLength = getLengthInBytes(encodeURI(JSON.stringify(thisArray)));
xhr.setRequestHeader("Content-length",thisLength);
xhr.setRequestHeader("Connection","close");
xhr.send({thisData : ''+encodeURI(JSON.stringify(thisArray)));
var reportText = xhr.responseText;
Web worker.
^_^
-
3. Re: Post string without form?
WolfShade May 14, 2013 2:11 PM (in response to WolfShade)Now it's just academic curiosity. Instead of the web worker submitting the data directly, I'm just going to have it message the data back to the originating page and submit it from there.
^_^
UPDATE: But I'm still curious about what scope the submitted string is inserted into, as far as CF Server is concerned.


