Forum Moderators: open
After a lot of googling I found this code:
var request = new HttpRequest();
request.open("POST", "https://www.ups.com/ups.app/xml/Track", false);
request.setRequestHeader("Content-Type", "text/xml");
request.send("<message>Hello World!</message>"); //this is my xml request
I use the above code to send a xml request, but it does not return anything, I think the code is incomplete... can anyone help me.
thanks
bye
[edited by: Jaunty_Edward at 11:04 pm (utc) on Mar. 30, 2007]
The problem isn't with your XML. It is with your AJAX submitting code, which isn't very well-done.
I'd actually question whether or not you even need to use AJAX to submit the form. It's probably easier.