Click here to Skip to main content
15,749,039 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a servlet in java.

My servlet URL is http: //

This URL is giving json data.

I am using a jquery ajax call to get the data.
function SecondResultLink(link, userId, userInput) {
    var urlSearch = "" + userId + "&query=" + userInput;
        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], data[index].Score)) {
                        link.add(data[index], data[index].Score);
        error: function (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
Updated 19-Nov-12 18:24pm

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900