[jQuery] Trouble with $(expr, context) and iframe documents

[jQuery] Trouble with $(expr, context) and iframe documents

Can someone please delete my email from this thing? I have tried to
cancel many times.
-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On
Behalf Of Adam Skinner
Sent: Monday, December 11, 2006 8:58 AM
To: discuss@jquery.com
Subject: [jQuery] Trouble with $(expr, context) and iframe documents
I'm trying to reference an element from within an iframe.
The following normal javascript code works:
var iframeDoc = window.frames[iframeName].document;
var data = iframeDoc.getElementById(iframeElement);
I'm trying to jqueryize the "data" variable as follows (using the actual
element id name for the time being):
var d2 = $("#inside_iframe_element",iframeDoc);
This just yields [], however. How do I refer to an element within the
iframe?
--
View this message in context:
http://www.nabble.com/Trouble-with-%24%28expr%2C-context%29-and-iframe-d
ocuments-tf2794146.html#a7795126
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/