Skip to main content

Bug Tracker

Side navigation

#6820 closed bug (invalid)

Opened July 22, 2010 06:37PM UTC

Closed July 25, 2010 03:29PM UTC

Last modified March 15, 2012 01:38PM UTC

$.ajax/$.getJSON fails (w/ error on line 4075) in IE8

Reported by: ben.mosher Owned by:
Priority: Milestone: 1.4.3
Component: ajax Version: 1.4.2
Keywords: IE8 Cc:
Blocked by: Blocking:
Description

Attached is an oversimplification of an application I'm writing to edit a database table. Much of the data that is ferried back and forth between the client and the server is in JSON form.

The initial page load requests a JSON object (normally generated dynamically--attached as setup.json) that includes an HTML table that represents the initial state of the editor. This loads all well and good in Firefox (3.6.6) and Opera (10.60), but in IE8 (under every different compatibility mode I could muster up), it fails out on line 4075 of the jQuery development 1.4.2 source.

Original code uses $.getJSON with an anonymous callback, but the test case defines the callback separately and includes a commented-out $.ajax call (which also fails in IE8, same error).

Not sure what to do here. Found some similar tickets, but with horrific, long, convoluted test cases. Did my best to keep it simple for this one. Apologies that the "form" property of the JSON is rather long, but that could be part of the problem. (Verified with jsonlint.com, too.)

Attachments (2)
  • coda.html (0.8 KB) - added by ben.mosher July 22, 2010 06:38PM UTC.

    HTML file w/ requesting script ($.getJSON call)

  • setup.json (10.7 KB) - added by ben.mosher July 22, 2010 06:38PM UTC.

    JSON object requested

Change History (1)

Changed July 25, 2010 03:29PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

The correct cross-browser way to change the document's title is by assigning to the

document.title
property. IE doesn't support document manipulation on the title element.