Bug Tracker

Opened 14 years ago

Closed 13 years ago

#4355 closed bug (worksforme)

Ajax.load ignores strings as data parameter for POST requests

Reported by: the-architect Owned by:
Priority: major Milestone: 1.4
Component: ajax Version: 1.3.2
Keywords: ajax, load, get, post Cc:
Blocked by: Blocking:


Other than stated in the documentation load does not accept strings as data parameter and will perform a GET request.

Attachments (1)

ajax_patch.diff (368 bytes) - added by the-architect 14 years ago.
patch for ajax.js

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by the-architect

Attachment: ajax_patch.diff added

patch for ajax.js

comment:1 Changed 14 years ago by the-architect

patch has been attached

comment:2 Changed 13 years ago by dmethvin

Resolution: worksforme
Status: newclosed

The docs for load say:

The POST method is used if data is provided as an object; otherwise, GET is assumed.

Since it's documented to work that way, at least since the new docs site went live in January, it should probably be left with the current behavior.

Note: See TracTickets for help on using tickets.