Skip to main content

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:

Passing data through Ajax in tabs doesn't work.



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 scottgonzalez comment:1

owner: → jplevene
status: newpending

What is the use case of this? The URL from the tab should be providing the data.

Changed August 17, 2012 12:36PM UTC by jplevene comment:2

_comment0: Above works in all versions of 1.81345206997206977
status: pendingnew

Above works in all versions of 1.8 but not 1.9

Changed August 17, 2012 12:41PM UTC by scottgonzalez comment:3

status: newpending

That is not a use case.

Changed August 17, 2012 01:08PM UTC by Scott González comment:4

resolution: → fixed
status: pendingclosed

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 scottgonzalez comment:5

milestone: 1.9.0git

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 zap 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){ = form.serialize();

Changed November 05, 2012 03:00PM UTC by scottgonzalez 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.