My code in javascript file:
$("#login").click(function(){
username=$("#user_name").val();
password=$("#password").val();
$.ajax({
type: "POST",
url: "login.php",
data: "username="+username+"&password="+password,
success: function(value)
{
//code
},
beforeSend:function()
{
$("#add_err").html("Loading...")
}
});
return false;
});
The aboue code is working fine in chrome and firefox but it is not workin in internet explorer 7 and 8.
When i try to access that page in in Internet Explorer 7 it showing the following error message:
“object doesn’t support this property or method”
Please suggest me a solution how to overcome this problme in IE7
I made the following changes in my code:
instead of those above lines replaced with those following lines: