Hi all,
can we get a response outside the domain using ajax? Eg. http://www.example.com/webService?list=test . then that may snd xml or json string to us.
var url ="http://www.example.com/webService?list=test ";
var myAjax = new Ajax.Request(
url,
{
method: 'get',
parameters: 'user=abc',
onComplete: function(response) {
res = response.responseText;
............................
and i want to display this response in my web page. we can simply do this by adding code like this
Eg. $("resp").innerHTML = res;
but when ajax call fires it saying this is unsafe in IE nothing happens in FF too. any solution for this??
Thank you,
samitha fernando