<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript"> function GetXMLDoc() { var url = 'http://phx.corporate-ir.net/phoenix.zhtml?c=61559&p=irol-stockquote'; var httpRequest = null; try { httpRequest = new ActiveXObject('Msxml2.XMLHTTP'); } catch (e) { try { httpRequest = new ActiveXObject('Microsoft.XMLHTTP'); } catch (e2) { try { httpRequest = new XMLHttpRequest(); } catch (e3) { httpRequest = false; } } } if (httpRequest) { httpRequest.open('POST', url, false); httpRequest.setRequestHeader("Content-Type", "text/xml"); httpRequest.send(null); alert(httpRequest.responseText); } else { alert(httpRequest); } } </script> </head> <body onload="GetXMLDoc();"> <form id="form1" runat="server"> <div> </div> </form> </body> </html>
Search This Blog
Tuesday, July 9, 2013
Get XML data from URL
Labels:
XML
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment