Hi,
I'm trying to use REST service using xmlHTTPrequest, using the following code:
Code: Select all
var xmlHttp = null;
xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", theUrl, false );
xmlHttp.send( null );
alert(xmlHttp.responseText); theURL is replaced by my service's URL. This code is located inside a click event of a button (RUN JAVASCRIPT).
The problem is: I do not receive any response. Is there a better way to invoke the service using the URL?
Thank you in advance.