when using the xmlhttp object under the MSXML DOM implementation how do you POST an XML document in a way which emulates a standard HTML 'submit' operation ?
I've got a CGI script which we've been posting entry info to using the JS submit() method associated with a form element. Now we'd like to pass this script a simple XML doc. The script doesn't provide a response.
the javascript I've tried is..
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"
;
xmlhttp.open("POST"," true);
xmlhttp.send(substr);
(ignore the errant semicolons , they're being imposed by the list )
this doesn't work , how does the xmlhttp post method differ from a standard POST. I'm assuming there's an element of the http header which is different but am not sure how to affect this .
any advice ?
thanks
David
I've got a CGI script which we've been posting entry info to using the JS submit() method associated with a form element. Now we'd like to pass this script a simple XML doc. The script doesn't provide a response.
the javascript I've tried is..
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"
xmlhttp.open("POST"," true);
xmlhttp.send(substr);
(ignore the errant semicolons , they're being imposed by the list )
this doesn't work , how does the xmlhttp post method differ from a standard POST. I'm assuming there's an element of the http header which is different but am not sure how to affect this .
any advice ?
thanks
David