Bug Tracker

Modify

Ticket #2289 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

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:
Blocking: Blocked by:

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.

Change History

comment:1 Changed 5 years ago by davidserduke

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.

comment:2 Changed 5 years ago by gfriedrich

Thanks, it's fixed in 1.2.3a.

comment:3 Changed 5 years ago by brandon

  • Status changed from new to closed
  • Resolution set to fixed

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.