Modify ↓
Ticket #378 (closed feature: invalid)
Deprecate $.get and $.post
| Reported by: | joern | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.0 |
| Component: | event | Version: | 1.0 |
| Keywords: | <Default> | Cc: | <Default> |
| Blocking: | Blocked by: |
Description
$.get and $.post are currently degenerated versions of $.ajax. The only thing that is useful about them is the conversion of data objects into string form. This could and should be handled by $.ajax, therefore there is hardly anymore use for $.get/$.post. "GET" is the default method for $.ajax anyway.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

$.get and $.post are still useful for convenience: They provide a "typed" interfaces (no key/value object). But their inner logic can be completely moved to $.ajax: Both converting of data parameter and handling the response.