jQuery Ajax - Permission Denied?

jQuery Ajax - Permission Denied?

I am trying to write a simple script that uses two input fields and a login button to perform a user authentication/login. For some reason though, every time I try to run it, I get a permission denied error. It only does this in IE6/7, Firefox just doesnt do anything. Wierd because I have done this before.. Even tried taking the working code from before and pasting it in and just changing the script name, and it still isnt working. I dont know what else to do..

$("#navigation #login").click(function() {

   $.post("script.php", { data: "test" }, function() { alert("test"); });

});


Something as simple as that wont even work.. Have tried the $.ajax command also but still get the same error. Anyone have any ideas of what the problem may be?