Bug Tracker

Modify

Ticket #9340 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

Unable to pass payload containing ?? via ajax call

Reported by: jabley Owned by:
Priority: low Milestone: 1.next
Component: ajax Version: 1.5.2
Keywords: Cc:
Blocking: Blocked by:

Description

jQuery 1.5.2

Firefox 4.0.1, Mac OSX Snow Leopard Firefox 3.6, Windows XP

Attempting to pass a JSON payload via AJAX which contains the string ?? gets treated as a JSONP request and the ajax error function is called, stating that

"jQuery152011057530349834899_1305758039649 was not called"

See  http://jsfiddle.net/FtX2g/

and

 https://gist.github.com/979756

On IRC, I was advised to use the Javascript escape function on the client, and decode server-side. This feels clunky and also has problems with codepoints unsuitable for transmission in a Latin-1 encoding.

If you change the linked jsfiddle test to use jQuery 1.6, the test passes.

Any plans for further 1.5.x releases, or should I begin to upgrade to 1.6.x?

Change History

comment:1 Changed 2 years ago by rwaldron

  • Priority changed from undecided to low
  • Resolution set to duplicate
  • Status changed from new to closed
  • Component changed from unfiled to ajax

comment:2 Changed 2 years ago by rwaldron

Duplicate of #8417.

comment:3 Changed 2 years ago by jabley

Actually, if I remove the dataType: "json" option, it works fine.

 http://jsfiddle.net/3J5sv/

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.