3 Replies Latest reply on May 14, 2013 2:11 PM by WolfShade

    Post string without form?

    WolfShade Level 4

      Hello, everyone.


      If I use AJaX to POST a string of JSON data without using a form, is it still inserted into the FORM scope, in ColdFusion?


      Thank you,



        • 1. Re: Post string without form?
          Adam Cameron. Level 5

          Couldn't you knock together a test of this in about 5min?




          • 2. Re: Post string without form?
            WolfShade Level 4




            var thisLength = getLengthInBytes(encodeURI(JSON.stringify(thisArray)));



            xhr.send({thisData : ''+encodeURI(JSON.stringify(thisArray)));

            var reportText = xhr.responseText;


            Web worker.



            • 3. Re: Post string without form?
              WolfShade Level 4

              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.