Bug Tracker

Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#854 closed bug (fixed)

$.post(url, function) broken

Reported by: joern Owned by:
Priority: major Milestone: 1.1
Component: ajax Version: 1.1
Keywords: Cc:
Blocked by: Blocking:

Description

Documentation says you can do this:

$.post("test.cgi", function(data){
	 alert("Data Loaded: " + data);
});

Doesn't work, because the callback is used as the data option to $.ajax. Either add back the argument detection or fix docs and examples:

$.post("test.cgi", {}, function(data){
	 alert("Data Loaded: " + data);
});

Change History (1)

comment:1 Changed 16 years ago by john

Milestone: 1.1
Resolution: fixed
Status: newclosed
Version: 1.1

Fixed in SVN rev 1149.

Note: See TracTickets for help on using tickets.