Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » 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 #1722889] Wed, 10 February 2016 06:25 Go to next message
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.
Re: Cross domain access from Eclipse with IIS Web Server [message #1723810 is a reply to message #1722889] Thu, 18 February 2016 08:24 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
maybe you posted your question in a wrong newsgroup. Are you using RAP?
Regards,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Using arrow keys in RAP 3.1 context menus
Next Topic:Trigger dispose of wizard when browser refreshes
Goto Forum:
  


Current Time: Tue Mar 19 05:26:40 GMT 2024

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

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

Back to the top