Link to home
Start Free TrialLog in
Avatar of NickMalloy
NickMalloyFlag for United States of America

asked on

json not working on server in IE

I have an ajax call that returns json from my server. On my local machine the code works in all browsers and does exactly what it should be doing. When I load it on my server. Windows 2008 R2, it works in both Chrome and Firefox, but not in IE. I can't figure out what is wrong or what the solution maybe. Any ideas?? Again it works locally just fine in IE when in debug.

 $("#<%=txtPositionTo.ClientID%>").blur(function () {
                 currentObject = $("#<%=txtPositionTo.ClientID %>").val();
                 $.ajax({
                     type: "POST",
                     url: "Data.asmx/GetToPosition",
                     data: "{PostionNumber:'" + currentObject + "'}",
                     contentType: "application/json; charset=utf-8",
                     dataType: "json",
                     success: function (data) {
                         var a = data.d;
                         a = $.parseJSON(a);
                         BindPostionTo(a);


                     },
                     error: function (xhr, ajaxOptions, thrownError) {
                         alert(xhr.status);
                         alert(thrownError);
                     }

                 });

             });

Open in new window

Avatar of Gary
Gary
Flag of Ireland image

What error are you getting?
Avatar of NickMalloy

ASKER

None, it just returns nothing to my boxes. If I do an alert it shows multiple objects for a. It does return a lot of data, and I looked up limits for IE, but it works locally so I can't see how that is the problem.
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial