Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

json not working on server in IE

Posted on 2014-01-30
3
Medium Priority
?
259 Views
Last Modified: 2014-01-30
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

0
Comment
Question by:NickMalloy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39822259
What error are you getting?
0
 

Author Comment

by:NickMalloy
ID: 39822301
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.
0
 
LVL 58

Accepted Solution

by:
Gary earned 2000 total points
ID: 39822325
So the problem is occurring in the success and not in the call?
Do an hard refresh to make sure you are not using old cached versions of any js files.
Can you verify the returned data is the same as in other browsers.
Add into your ajax params

cache: false,
0

Featured Post

RHCE - Red Hat OpenStack Prep Course

This course will provide in-depth training so that students who currently hold the EX200 & EX210 certifications can sit for the EX310 exam. Students will learn how to deploy & manage a full Red Hat environment with Ceph block storage, & integrate Ceph into other OpenStack service

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question