Skip to main content

Bug Tracker

Side navigation

#2839 closed bug (fixed)

Opened May 10, 2008 01:47PM UTC

Closed January 16, 2009 07:30AM UTC

Dynamic adding of a remote tab causes error

Reported by: sjmittal Owned by: klaus
Priority: major Milestone: 1.2.4
Component: ui Version: 1.2.3
Keywords: ui.tabs Cc:
Blocked by: Blocking:


When I add a tab dynamically whose contents are to be pulled from a remote location specified by the url it causes and error.

The problem is that it treats the url as callback function.

In the add function following code:

if (href)

this.load(index, href);

if to be replaced by

if (href)


to fix this problem.

If fix is found appropriate please include this is code.



Attachments (1)
Change History (4)

Changed May 11, 2008 12:57PM UTC by paul comment:1

owner: paulklaus

Changed May 14, 2008 03:39PM UTC by mdalessio comment:2

I encountered this issue as well, which only occurs for me when trying to invoke tabs() on an empty UL.

In addition to the change made above, one other change is necessary to avoid access non-existent $.data. Full patch is attached.

Changed May 14, 2008 03:42PM UTC by mdalessio comment:3

To reproduce this issue:

1. invoke tabs() on an empty UL

2. dynamically add, via tabs('add',...) a remote (Ajax) URL

And again, the above patch allows me to do this with no js errors.

Changed January 16, 2009 07:30AM UTC by klaus comment:4

resolution: → fixed
status: newclosed