-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ajax error in IE #23
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a servlet in java.
My servlet URL is http: //192.168.10.113:8080/collective-intellegence/UserClickPersonClassifier?userid=1&query=asp.net
This URL is giving json data.
I am using a jquery ajax call to get the data.
My Code
function SecondResultLink(link, userId, userInput) {
try{
var urlSearch = "http://192.168.10.113:8080/collective-intellegence/UserClickLinkClassifier?userid=" + userId + "&query=" + userInput;
$.ajax({
url: urlSearch,
type: 'POST',
dataType: 'json',
async: false,
success: function (data) {
if (data.length != 0) {
for (index = 0; index < data.length; index++) {
if (!link.exist(data[index].Link.name.toLowerCase(), data[index].Score)) {
link.add(data[index].Link.name.toLowerCase(), data[index].Score);
}
}
}
},
error: function (error) {
alert(error.error);
}
});
}
catch (err) {
alert(err);
}
}
the above code is giving 45 records in Chrome,Firefox and Safari but giving 25 records in Opera and giving error message in IE.
Error Message in IE:- function(){if(c){var a=c.length;m(arguments),i? k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))} return this}
In all browser except IE request is going to server, but in IE not request is going to the server.
This is not a cross domain problem because i allowed all to access the server(seen in the header that Access-Control-Allow-Origin: *)
What is problem with IE? how to solve this issue or any other approach to get the data.
Please help
Thanks in advance
The text was updated successfully, but these errors were encountered: