Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Cross domain access from Eclipse with IIS Web Server(How to access Web Sites loaded Web Server from Eclipse .html (Java Script/ajax) )
Cross domain access from Eclipse with IIS Web Server [message #1722890] Wed, 10 February 2016 06:28
Kavitha Datchanamoorthy is currently offline Kavitha DatchanamoorthyFriend
Messages: 2
Registered: February 2016
Junior Member
Can anyone help me..

I need the following:

1. vb.net (.aspx) page to writes data using Respone.Write (as a json data or text) which we host in IIS of Web Server.

2. "Eclipse - Mobile Application" - HTML file to receive the data from .aspx page.

I have tested in IIs-Web Server and in Local host, browsers displays .json data from the .aspx page..

But from Eclipse - Mobile Application shows

xhttp.readyState = 404

xhttp.status=408


Code: //Login.html

<!DOCTYPE html>
<html>
<body>

<div id="demo"><h2>Test this text</h2></div>

<button type="button" onclick="loadDoc()">Change Content</button>

<script>
function loadDoc() {

alert("hello");
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (xhttp.readyState == 4 && xhttp.status == 200) {
alert(xhttp.readyState + xhttp.status);
document.getElementById("demo").innerHTML = xhttp.responseText;
}
alert(xhttp.readyState + xhttp.status);
};
xhttp.open("GET", "http://localhost/API2/mwSchool/checkuser.aspx?password=password", true);
xhttp.send();
}
</script>

</body>
</html>



Many thanks.
Previous Topic:Eclipse IDE for Java Developers doesn't download
Next Topic:Eclipse and MS SQL
Goto Forum:
  


Current Time: Fri Aug 23 01:11:37 GMT 2019

Powered by FUDForum. Page generated in 0.03223 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top