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