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. (.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


Code: //Login.html

<!DOCTYPE html>

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

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

function loadDoc() {

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);
};"GET", "http://localhost/API2/mwSchool/checkuser.aspx?password=password", true);


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

Current Time: Mon Jan 27 16:42:18 GMT 2020

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

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

Back to the top