Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#6820 closed bug (invalid)

$.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)

setup.json (10.7 KB) - added by ben.mosher 9 years ago.
JSON object requested
coda.html (845 bytes) - added by ben.mosher 9 years ago.
HTML file w/ requesting script ($.getJSON call)

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by ben.mosher

Attachment: setup.json added

JSON object requested

Changed 9 years ago by ben.mosher

Attachment: coda.html added

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

comment:1 Changed 9 years ago by dmethvin

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.

Note: See TracTickets for help on using tickets.