Using MSXML2.ServerXMLHTTP.4.0 and ASP
-
I have an asp page that request data from a remote site (API) via XML. My code is as follows: DataToSend = "http://jc.tee.id.com/api/2.0/"& Request("resource") &"?apikey=a0d523ddnfjfjkkfkfkf32c&format=HTML&pret typrint=true&links=resource-path-encoded&request_handler_uri=http%3A%2F%2Fwww.mysit e.com%2Fitems&styles=enhanced" set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP.4.0") xmlhttp.Open "GET", DataToSend, false xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" xmlhttp.send Response.Write xmlhttp.ResponseText This code works fine and returns data with no problem. However on page where the API has AJAX in it, the AJAX doesnt function. For example, executing my code I pull up a table of contents page: A | B | C | D | E apple adam aligator acorn If I click in the title names, it takes me to the proper URL with no problem. if I click on a navigation letter (which is suppose to execute AJAX on the API side and pull in new titles), it just reloads the page. I am assuming its because of MSXML2.ServerXMLHTTP.4.0. I tried switching to 6.0 but this did nothing as well. Am i not able to execute AJAX or something through this remote site?? Any help or insight anyone could give me would be greatly appreciated. Thanks