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)
Change History (3)
Changed November 17, 2009 06:29PM UTC by comment:1
milestone: | TBD → 1.8 |
---|
Changed November 23, 2009 03:47PM UTC by 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 comment:3
resolution: | → invalid |
---|---|
status: | new → closed |
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.
Does "blank.html" exist?