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
titleiframe 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('ptest/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
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
jQuery (English) group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-en?hl=en
-~--~~~~--~~--~--~---