Skip to main content

Search and Top Navigation

#4944 closed bug (notabug)

Opened November 05, 2009 03:15PM UTC

Closed January 21, 2010 02:23AM UTC

tabs load callback doesn't have reference to $() IE7

Reported by: thrykol Owned by:
Priority: minor Milestone: 1.8
Component: ui.tabs Version: 1.7.2
Keywords: add tabs load IE7 Cc:
Blocked by: Blocking:
Description

The following code fragment fails in IE7. The new tab appears to add correctly, but when I click on the tab, IE gives the error:

A Runtime Error has occurred
Line: 2
Error: Object expected

1 $("#tabs").tabs({
2   load : function() { alert($("#message").text()); }
3 });
4 
5 $("#tabs").add("add", "blank.html", "Test Tab", 1);
Attachments (1)
  • sample.zip (74.9 KB) - added by thrykol November 05, 2009 03:16PM UTC.

    Zip file containing functional sample code.

Change History (3)

Changed November 17, 2009 06:29PM UTC by jzaefferer comment:1

milestone: TBD1.8

Does "blank.html" exist?

Changed November 23, 2009 03:47PM UTC by thrykol comment:2

Yes it does. It should be in the zip file. It is essentially an empty html file containing a reference to the parent's jquery object. In my application, cross-site scripting is not an issue (hence the sharing of the object).

Changed January 21, 2010 02:23AM UTC by scottgonzalez comment:3

resolution: → invalid
status: newclosed

You're loading a page from the same path, which means that it's from the same domain, so there is no cross-site scripting occurring. This isn't even cross-window scripting, which is what you're thinking of. There's absolutely no reason to do $ = parent.$ since the code is on the same page. I'm not even sure what you're trying to accomplish with this test case.