Hi All,
I have a pageTest.html in local folder,this page call a service.ashx?i=...(that return value param passed incremented +1) with follow Ajax code:
.
.
getIncr: function(parameters, success){
$.ajax({
async: false,
type: methodType,
url: getTarget,
data: "n="+parameters,
dataType:"jsonp",
success: success
});
}
.
.
The html page call this fuction for m time (with script..):
.
var start = function(){
.
.
var val = 0;
.
.
for(i=0; i<m; i++)
{
Foo.getIncr(val, function(returned_n){
val = returned_n;
});
}
};
During the page loading, the calls are execute in "Asynchronous mode" but i setting "async: false" in Ajax. I read about this problem and found the reason, that is Ajax can't synch call from page.html to service.ashx if there are in different domain. Is there a solution for execute Synch call in page.html to that service.ashx (in different domain)?
Best Regard
Domenico