[CODE=javascript]
function synchronous_aja x(){
var ajax = null;
if(typeof ActiveXObject!= 'undefined') ajax = new ActiveXObject(" Microsoft.XMLHT TP");
else if(typeof XMLHttpRequest! ='undefined') ajax = new XMLHttpRequest( );
else{alert('Aja x is not support!!!!!'); return;}
alert('Yahoo: ' + ajax);
ajax.open("GET" ,"http://www.google.co.i n/",false);
ajax.send(null) ;
alert(ajax.stat us);
}[/CODE]
It's working fine in IE 6 but whenever i am trying to run it in Mozilla then it shows me that ajax.open permission denied.
Could you please help me to figure out why it's happening?
Debasis Jana
function synchronous_aja x(){
var ajax = null;
if(typeof ActiveXObject!= 'undefined') ajax = new ActiveXObject(" Microsoft.XMLHT TP");
else if(typeof XMLHttpRequest! ='undefined') ajax = new XMLHttpRequest( );
else{alert('Aja x is not support!!!!!'); return;}
alert('Yahoo: ' + ajax);
ajax.open("GET" ,"http://www.google.co.i n/",false);
ajax.send(null) ;
alert(ajax.stat us);
}[/CODE]
It's working fine in IE 6 but whenever i am trying to run it in Mozilla then it shows me that ajax.open permission denied.
Could you please help me to figure out why it's happening?
Debasis Jana
Comment