Opened 9 years ago

Closed 8 years ago

#5070 closed enhancement (fixed)

Tabs: Add ability to cleanly handle ajax load errors

Reported by: snover Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.tabs Version: 1.8a2
Keywords: Cc:
Blocked by: Blocking:

Description

Currently, context isn’t provided when loading an AJAX tab, which means it’s difficult or impossible to determine which tab experienced an error on load. This very simple patch sets the context of the AJAX request to the tab that is being loaded.

Attachments (2)

jquery-ui-tabs-context.js.patch (347 bytes) - added by snover 9 years ago.
Patch to set the context of tabs AJAX requests
jquery-ui-tabs-context.js.2.patch (531 bytes) - added by snover 9 years ago.
Add tabserror event instead of setting a context

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by snover

Patch to set the context of tabs AJAX requests

Changed 9 years ago by snover

Add tabserror event instead of setting a context

comment:1 Changed 8 years ago by Corey Frang

Status: newopen

Sounds like this would be useful...

comment:2 Changed 8 years ago by Scott González

Milestone: TBD1.9
Resolution: fixed
Status: openclosed
Summary: Send tab ui context to $.ajaxTabs: Add ability to cleanly handle ajax load errors

You can now access the jqXHR object from the beforeload event and bind any custom error handling functionality that you want.

Note: See TracTickets for help on using tickets.