Re: [jQuery] Target iframe generated by jquery

2007-02-15 Thread 15daysofjquery
I have attempted to, but so far have been unable to confirm that I have done it successfully. var oIframe = document.getElementById("if"); var oDoc = oIframe.contentWindow || oIframe.contentDocument; if (oDoc.document) { oDoc = oDoc.document; } //add jquery to ifr

Re: [jQuery] Target iframe generated by jquery

2007-02-15 Thread Sam Collett
On 14/02/07, 15daysofjquery <[EMAIL PROTECTED]> wrote: > > How do I target an element inside of an iframe I've created on the page? In > other words, I've used jQuery to create an iframe, and now I need to target > all the p elements of the document inside that iframe. > > I've tried > > $("p",sel

[jQuery] Target iframe generated by jquery

2007-02-15 Thread 15daysofjquery
How do I target an element inside of an iframe I've created on the page? In other words, I've used jQuery to create an iframe, and now I need to target all the p elements of the document inside that iframe. I've tried $("p",self.MyIFrame.document).click(function(){alert('asdf');}); and also