Does anyone know how to format the XMLHttpRequest.send() string when using the POST method? I'm at a complete lose here as I thought it would be formated just like when you use cURL.
Thanks!
XMLHttpRequest Question
Page 1 of 12 Replies - 2343 Views - Last Post: 11 December 2005 - 05:29 AM
Replies To: XMLHttpRequest Question
#2
Re: XMLHttpRequest Question
Posted 11 December 2005 - 02:02 AM
Alrighty then, I found a fix.
Say you're wanting to send variable POST data through the XMLHttpRequest. But you get an error when you use XHRObj.send(postVars). A simple fix for this is to do this.
That should stop the errors and allow the data to go on through without problems.
Say you're wanting to send variable POST data through the XMLHttpRequest. But you get an error when you use XHRObj.send(postVars). A simple fix for this is to do this.
XHRObj.send(""+postVars+"")
That should stop the errors and allow the data to go on through without problems.
#3
Re: XMLHttpRequest Question
Posted 11 December 2005 - 05:29 AM
Damn, you rock hotsnoj. I watched this post just sit here unanswered a while... I was starting to wonder if there was anyone here up to your level. But I guess when you get good enough you have to start answering your own questions. You rock!
Page 1 of 1

New Topic/Question
Reply


MultiQuote



|