Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XMLHTTPRequest and Response

Status
Not open for further replies.

dpimental

Programmer
Jul 23, 2002
535
US
I am working on a project to send xml data by the xmlhttpRequest object, and wait for a response and process the response. I have been reading up on the xmlhttpRequest object, but don't understand to get the response and process it.

I will be using asp.

Can anyone help me understand this?

David Pimental
(US, Oh)
 
Do you want to do this client side or server-side?

Client-side:
Server-side:
Code:
' set-up XMLHTTP
set objHTTP = Server.CreateObject("Microsoft.XMLHTTP")

' get the requested data
objHTTP.open "GET", "http//[URL unfurl="true"]www.blah.com/blah",[/URL] false
objHTTP.send

' save the XML in objXML as XML
set objXML = objHTTP.responseXML

Jon

"I don't regret this, but I both rue and lament it.
 
I want to do server side. I tried this code, but it doesn't work.

Don't you need to create and object for the objXML?


David Pimental
(US, Oh)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top