JQuery Post caused permission denied warning in IE 6 and IE 7

Posted by kwokwai on Stack Overflow See other posts from Stack Overflow or by kwokwai
Published on 2010-06-01T06:50:05Z Indexed on 2010/06/01 6:53 UTC
Read the original article Hit count: 251

Filed under:

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,&nbsp;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"

© Stack Overflow or respective owner

Related posts about jQuery