Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am developing a OWA using visual Studio 2012. inside the Home.js file, I have included following method


function httpGet() {
var theUrl = "http://api.hostip.info/get_html.php";
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", theUrl, false);
xmlHttp.send();
console.log(xmlHttp.responseText);
}

When that function is getting called, It gives me an error (Please see the picture - included Dropbox url) in the 4th line, which is " xmlHttp.open("GET", theUrl, false);". But this function works properly when I use it inside a normal .html sample test page. Please help me to solve this.

url :- https://www.dropbox.com/s/1tyf2whb03ddk5k/Error1.PNG?dl=0

Thanks for helping,
Kushan Randima.
Software Engineer
Davton Ltd
Posted
Updated 9-Nov-14 17:45pm
v2
Comments
Samatha Reddy G 1-Oct-14 1:35am    
once check in browser console may be you can find any soluction
Kushan Randima 1-Oct-14 2:01am    
Yes tried that too. Still no luck!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900