Search and Top Navigation
#8504 closed bug (fixed)
Opened August 17, 2012 12:27PM UTC
Closed August 17, 2012 01:08PM UTC
Last modified November 05, 2012 03:00PM UTC
Ajax in Tabs not passing data in 1.9. beta 1
Reported by: | jplevene | Owned by: | jplevene |
---|---|---|---|
Priority: | minor | Milestone: | git |
Component: | ui.tabs | Version: | git (not yet released) |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Passing data through Ajax in tabs doesn't work.
CODE:
$("#tabs").tabs({
cache: true,
ajaxOptions: {
type : 'GET',
data: "id=2",
error: function( xhr, status, index, anchor ) {
$( anchor.hash ).html("ERROR");
}
}
});
Attachments (0)
Change History (7)
Changed August 17, 2012 12:34PM UTC by comment:1
owner: | → jplevene |
---|---|
status: | new → pending |
Changed August 17, 2012 12:36PM UTC by comment:2
_comment0: | Above works in all versions of 1.8 → 1345206997206977 |
---|---|
status: | pending → new |
Above works in all versions of 1.8 but not 1.9
Changed August 17, 2012 12:41PM UTC by comment:3
status: | new → pending |
---|
That is not a use case.
Changed August 17, 2012 01:08PM UTC by comment:4
resolution: | → fixed |
---|---|
status: | pending → closed |
Tabs: Set ajaxOptions in intial $.ajax() call. Fixes #8504 - Ajax in Tabs not passing data in 1.9. beta 1.
Changeset: af67883226954114ef4782f81d1b6360d6516ee9
Changed August 17, 2012 01:09PM UTC by comment:5
milestone: | 1.9.0 → git |
---|
I'd still like to know what the use case is for this, but it's important to me to not have 1.9 break any code that works with 1.8, even though ajaxOptions
is deprecated.
Changed November 05, 2012 02:54PM UTC by comment:6
A possible work case is if you need to send post data. In my case I have a form that needs to be sent when a tab is changed. A workaround to send the data as GET in the url is not possible in my case. Even this ticket is marked as closed I think this is a bug and a fix is needed
beforeLoad: function(event, ui){ ui.ajaxSettings.data = form.serialize(); }
Changed November 05, 2012 03:00PM UTC by comment:7
zap: Your comment doesn't describe a bug. You want to submit a form when a tab is changed, but I have no idea how that's related to this ticket, which is already fixed (and never existed in a stable release). If you have a different bug to report, please file a new ticket. If you have a feature request, please file a new ticket (but we won't be supporting form submission as a way to handle ajax tabs). If you have a question, please use the forums or StackOverflow.
What is the use case of this? The URL from the tab should be providing the data.