Skip to main content

Bug Tracker

Side navigation

#4190 closed bug (fixed)

Opened February 19, 2009 11:04AM UTC

Closed May 16, 2009 04:49PM UTC

load method

Reported by: kof13 Owned by: brandon
Priority: major Milestone: 1.4
Component: docs Version: 1.3.1
Keywords: Cc: john
Blocked by: Blocking:
Description

Docu says if any parameter is added - type will be "POST" otherwise it is "GET".

But if the parameter is a serialised string, it sends always "GET". Only if the parameter is json object it works properly.

Attachments (0)
Change History (6)

Changed February 28, 2009 07:35PM UTC by dmethvin comment:1

It does seem like there's a difference between the docs and the actual behavior.

Changed March 01, 2009 01:16AM UTC by kof13 comment:2

"A GET request will be performed by default - but if you pass in any extra parameters then a POST will occur."

$('#output').load('jquery.php','param=123');

This call will be done as a GET, in spite of a parameter. So either is the doc not 100% correct or its a bug.

Changed May 16, 2009 04:41PM UTC by brandon comment:3

owner: → brandon
priority: criticalmajor

Changed May 16, 2009 04:41PM UTC by brandon comment:4

milestone: 1.3.21.3.3

Changed May 16, 2009 04:45PM UTC by brandon comment:5

component: ajaxdocs

According to the test suite the expected behavior when passing a string is to use GET. The docs need to be updated as such.

Changed May 16, 2009 04:49PM UTC by brandon comment:6

resolution: → fixed
status: newclosed

Docs have been updated: http://docs.jquery.com/Ajax/load