Opened 13 years ago
Closed 13 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 13 years ago by
comment:2 Changed 13 years ago by
"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 13 years ago by
Owner: | set to brandon |
---|---|
Priority: | critical → major |
comment:4 Changed 13 years ago by
Milestone: | 1.3.2 → 1.3.3 |
---|
comment:5 Changed 13 years ago by
Component: | ajax → docs |
---|
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 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Docs have been updated: http://docs.jquery.com/Ajax/load
It does seem like there's a difference between the docs and the actual behavior.