Modify ↓
Ticket #10524 (closed bug: fixed)
jQuery.fn.load does not merge data parameter with jQuery.ajaxSetup
| Reported by: | matt@… | Owned by: | orkel |
|---|---|---|---|
| Priority: | low | Milestone: | 1.8 |
| Component: | ajax | Version: | 1.6.4 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
The behaviour when passing a data object to load is inconsistent to that observed when passing a data object to object to get/post.
The JS Fiddle here shows that get merges the provided data object with the contents of jQuery.ajaxSettings.data, where as load replaces the contents.
Change History
comment:1 Changed 20 months ago by timmywil
- Priority changed from undecided to low
- Status changed from new to open
- Component changed from unfiled to ajax
- Milestone changed from None to 1.next
comment:2 Changed 14 months ago by rwaldron
- Status changed from open to closed
- Resolution set to fixed
comment:4 Changed 14 months ago by rwaldron
- Status changed from closed to reopened
- Resolution fixed deleted
comment:5 Changed 14 months ago by rwaldron
- Owner set to orkel
- Status changed from reopened to assigned
comment:6 Changed 13 months ago by Oleg
- Status changed from assigned to closed
- Resolution set to fixed
jQuery.ajaxSetup() data is merged with params. Fixes #10524
Changeset: 6bed348a007f8467dfc09cf63a1783bce673c3f4
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.

Confirmed. data from ajaxSetup is not included in the load. Seems like that should be the same.