IE7 AJAX GET only returning part of response

I have a application that I can't get working in IE 7 (actually, IE 10 running in IE 7 mode).

The problem appears when I try to do an AJAX GET request using jQuery. In newer browsers, the response body is something like 30 000 characters of HTML code, but in IE7 the response is cut short at about 4300 characters. I can't find any indication that IE7's response body has a limitation on its size. Anyone know what's going on? Even better; does anyone know of a solution?

The server side implementation returns an ASP.NET MVC 4 partial view, if that is of any importance. The client side code looks something like this.

$.get(settings.url_root + "?" + params, // typically localhost/getData?id=1234&id=5678
      // success
      function (html) {                       
            // html is ~4300 chars, should be ~30000
.fail(function () {
      // display error message


Try loading only relevant parts of the document using jquery .load() by specifying the id of a container. refer jQuery .load() Usage

Turns out that the problem was not related to AJAX or jQuery, but to how IE7 renders certain characters. Upon close inspection, I found that in the response, certain lines contained the zero character '\0' which caused IE7 to stop rendering. A simple returnValue.Replace("\0", String.Empty) at the server resolved all of my problems.

Need Your Help

applicationContext.xml and other configuration files - where should they go?

hibernate spring maven-2 jpa

I'm developing a new Spring+JPA2/Hibernate+Wicket project and am wondering where some of the configuration files should go?

easyimage : set re-sized image background to transparent

javascript node.js imagemagick alpha-transparency

im using easyImage moudel built on top of ImageMagick i'm trying to resize image and set the background to transparent but it always white , there is no good documentation for easyImage moudel here...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.