Skip to main content

Bug Tracker

Side navigation

#2289 closed bug (fixed)

Opened February 07, 2008 10:31AM UTC

Closed February 17, 2008 06:24PM UTC

JSON requests don't trigger AJAX callbacks

Reported by: gfriedrich Owned by:
Priority: major Milestone: 1.2.3
Component: core Version: 1.2.2
Keywords: Cc:
Blocked by: Blocking:
Description

For example if you call $.getJSON(), jQuery doesn't call the beforeSend callback.

This is because with jQuery 1.2.2 JSON requests are done by inserting script elements in head and not by XmlHttpRequests.

Attachments (0)
Change History (3)

Changed February 07, 2008 04:07PM UTC by davidserduke comment:1

This is likely because you are using an absolute url for the $.getJSON(). There was a change in 1.2.2 that will be reverted in 1.2.3 so please try out the 1.2.3 alpha here:

http://groups.google.com/group/jquery-dev/browse_thread/thread/c0f2a57823cd8e07/ee44344446ec766a

and see if that fixes the problem. The final version is expected to release soon.

Changed February 07, 2008 04:57PM UTC by gfriedrich comment:2

Thanks, it's fixed in 1.2.3a.

Changed February 17, 2008 06:24PM UTC by brandon comment:3

resolution: → fixed
status: newclosed