Skip to main content

Bug Tracker

Side navigation

#4355 closed bug (worksforme)

Opened March 15, 2009 06:55PM UTC

Closed June 15, 2010 02:48AM UTC

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:
Description

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 (0.4 KB) - added by the-architect March 15, 2009 06:58PM UTC.

    patch for ajax.js

Change History (2)

Changed March 15, 2009 06:58PM UTC by the-architect comment:1

patch has been attached

Changed June 15, 2010 02:48AM UTC by dmethvin comment:2

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.