Reputation: 39
The code rest of the AJAX request works fine but this $.get
request is causing an error.
$.get(
'login.php?pass=' + password ,
function(data) {
var check = data;
$('#main').load(check);
}
);
The error is 80020101
.
Is there a workaround?
Upvotes: 1
Views: 126
Reputation: 173572
This is a hunch, so if it's wrong let me know and I'll remove my answer.
Your login.php
script probably returns JavaScript and inside that JavaScript there's an error. Specifically look for constructs like this:
{
a: 'x',
b: 'y',
}
See that dangling comma before the curly closing brace? That trips up IE!
PS if you're sending passwords like that in the clear I sure hope you're using HTTPS
PPS You should use '...?pass=' + encodeURIComponent(password)
Upvotes: 3