In Mozilla 1.4b, when the URL is set to a local URL, it works as expected.
function showIt(){
var xmlhttp = new XMLHttpRequest( );
xmlhttp.open("G ET", "blank.html " ,true);
xmlhttp.onready statechange=fun ction() {
if (xmlhttp.readyS tate==4) {
document.myForm .outputSource.v alue = xmlhttp.respons eText;
}
}
xmlhttp.send(nu ll)
}
<form name="myForm" action="">
<textarea name="outputSou rce" rows="30" cols="40"></textarea>
</form>
If I change the blank.html to an online file, it gives me the error:
Error: uncaught exception: Permission denied to call method XMLHttpRequest. open
How do I make Mozilla allow permission to make the call?
--
Randy
function showIt(){
var xmlhttp = new XMLHttpRequest( );
xmlhttp.open("G ET", "blank.html " ,true);
xmlhttp.onready statechange=fun ction() {
if (xmlhttp.readyS tate==4) {
document.myForm .outputSource.v alue = xmlhttp.respons eText;
}
}
xmlhttp.send(nu ll)
}
<form name="myForm" action="">
<textarea name="outputSou rce" rows="30" cols="40"></textarea>
</form>
If I change the blank.html to an online file, it gives me the error:
Error: uncaught exception: Permission denied to call method XMLHttpRequest. open
How do I make Mozilla allow permission to make the call?
--
Randy
Comment