JQuery Post caused permission denied warning in IE 6 and IE 7
- by kwokwai
Hi all,
I am using firefox 3 and IE 6, 7 to test if a simple php web page using JQuery Post to
pass some data to and from another server web page.
$(document).ready(function(){
$("#data\\[User\\]\\[name\\]").click(function(){
var usr=$("#data\\[User\\]\\[name\\]").val();
if(usr.length >= 4){
$("#username").append('<span id="loaderimg" name="loaderimg"><img align="absmiddle" src="loader.gif"/> Checking data availability, please wait.</span>');
var url = "http://mysite.com/site1/toavail/"+usr;
$.post(
url,
function(data) {alert(data);});
});
});
//-->
</script>
<table border=0 width="100%">
<tr>
<td>Username</td>
<td>
<div id="username">
<input type="text" name="data[User][name]" id="data[User][name]">
</div>
</td>
</tr>
</table>
In Firefox 3, the alert box showed empty message.
In IE 6 and IE 7, I got an error message saying "Permssion denied"