Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: IE7 Ajax jQuery Servlet
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.
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);
        }
    });
}
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
Posted 19-Nov-12 19:00pm
Mac123341.1K
Edited 19-Nov-12 19:24pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 385
1 Sergey Alexandrovich Kryukov 329
2 CPallini 270
3 DamithSL 214
4 Maciej Los 192
0 OriginalGriff 5,515
1 DamithSL 4,451
2 Maciej Los 3,902
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,175


Advertise | Privacy | Mobile
Web01 | 2.8.141216.1 | Last Updated 20 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100