Hi Rory, Have you looked at the FrameReady plugin yet? It might prove helpful:
http://ideamill.synaptrixgroup.com/?p=6 --Karl _________________ Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 22, 2007, at 11:07 AM, roryf wrote: > > Is there a way to do this with jQuery without resorting to browser > sniffing? > > On Jun 14, 8:37 am, Jean-Francois Hovinne <[EMAIL PROTECTED]> > wrote: >> Hi Alexandre, >> I don't know if it's the better way to do it, but in WYMeditor we use >> this technique: >> >> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// >> www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> >> <html> >> <head> >> <title>iframe test</title> >> <script type="text/javascript" src="jquery.js"></script> >> <script type="text/javascript"> >> >> function initIframe(iframe) { >> >> if ($.browser.msie || $.browser.opera) { >> var doc = iframe.contentWindow.document; >> } >> else if ($.browser.mozilla || $.browser.safari) { >> var doc = iframe.contentDocument; >> } >> else { >> //handle unsupported browsers >> } >> >> $(doc.body).html('<p>test</p>'); >> >> } >> >> </script> >> </head> >> <body> >> <iframe src="iframe.html" onload="window.parent.initIframe(this)"></ >> iframe> >> </body> >> </html> >> >> On Jun 13, 6:32 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]> >> wrote: >> >>> dear all, >> >>> i need to access the dom inside the page in an iframe . Is it >>> possible at all? >> >>> so far all my attempts failed miserably... your feedback would be >>> precious! >> >>> thanks >> >>> alexandre >> >>> Ce message Envoi est certifié sans virus connu. >>> Analyse effectuée par AVG. >>> Version: 7.5.472 / Base de données virus: 269.8.15/847 - Date: >>> 12/06/2007 21:42 > > > >