Bug Tracker

Opened 11 years ago

Closed 11 years ago

#4190 closed bug (fixed)

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.

Change History (6)

comment:1 Changed 11 years ago by dmethvin

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

comment:2 Changed 11 years ago by kof13

"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.

comment:3 Changed 11 years ago by brandon

Owner: set to brandon
Priority: criticalmajor

comment:4 Changed 11 years ago by brandon

Milestone: 1.3.21.3.3

comment:5 Changed 11 years ago by brandon

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.

comment:6 Changed 11 years ago by brandon

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.