2 Replies - 2343 Views - Last Post: 11 December 2005 - 05:29 AM

#1 snoj   User is offline

  • Married Life
  • member icon

Reputation: 93
  • View blog
  • Posts: 3,583
  • Joined: 31-March 03

XMLHttpRequest Question

Posted 10 December 2005 - 02:54 AM

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!
Is This A Good Question/Topic? 0
  • +

Replies To: XMLHttpRequest Question

#2 snoj   User is offline

  • Married Life
  • member icon

Reputation: 93
  • View blog
  • Posts: 3,583
  • Joined: 31-March 03

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.

XHRObj.send(""+postVars+"")


That should stop the errors and allow the data to go on through without problems.
Was This Post Helpful? 0
  • +
  • -

#3 Israel   User is offline

  • D.I.C Addict
  • member icon

Reputation: 7
  • View blog
  • Posts: 833
  • Joined: 22-November 04

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!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1