#9565 closed enhancement (worksforme)
Add ajax request type to the xhr object
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | ajax | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description (last modified by )
I have a global ajax event handler in my app and I was very surprised when I couldn't find out the request type (get/post/delete and so) from the xhr object which is passed to the callback.
I have searched the documentation, but I couldn't find good solution. And I think that adding such property to the xhr object itself won't be very hard
Change History (4)
comment:1 Changed 12 years ago by
Component: | unfiled → ajax |
---|---|
Description: | modified (diff) |
comment:2 Changed 12 years ago by
Priority: | undecided → low |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
By default, the
this
object of the ajax callbacks is$.ajaxSettings
combined with the argument to$.ajax
which would have the type passed into the method, if any. (The default type is GET.) I've updated the docs to clarify.