hello guys,
i'm trying to get info exposed through a web service. i get an error on line 6855 (i know this because i'm including the atlas.js file directly on my html page). it looks like this method is a handler which is called when my web service returns its data from the server side. the following code is from the load method of the Sys.Net.DataSource class:
var
url = Sys.Net.WebRequest.createUrl(_serviceURL, _parameters);
var request =
new Sys.Net.WebRequest();
request.set_url(url);
request.completed.add(Function.createDelegate(
this, onRequestComplete));
request.timeout.add(Function.createDelegate(
this, ready));
request.invoke();
so, by default, the xmlhttpexecutor will be used to invoke a web service and get the results. the problem happens on the onRequestComplete method:
function
onRequestComplete(sender, eventArgs) {
onLoadComplete.call(this, sender.get_response().get_object());
}
if i'm not mistaken, sender is the XMLHttpExecutor that made the request and it looks like this classe doesn't expose a get_response() method. in fact, the only calss that has this property is the servicemethodrequest class. so, i think that this line should be:
onLoadComplete.call( this, sender.get_object() );
am i right? thanks!