Re: Getting IFRAME text
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Getting IFRAME text

From: Aaron Gray <ang.usenet@gmail.com>
Date: Fri Nov 11 2005 - 18:23:39 CET

> Don't listen to what V'often wrong'K is telling you. There is nothing
> wrong in using such names, there is no known side effect in any language
> or UA. What is true is that it is a Good Thing to choose names with
> meaning; for example, the `textarea' element could be named according
> to its expected content.

Yes they are different namespaces.

>> This does not deal with getting the text from a text document
>> in an iframe which is what I was after.
>
> Try referenceToIframe.document.body.firstChild.firstChild.nodeValue in
> Mozilla/5.0.
> WFM in Firefox 1.0.7/Linux as an iframe with a plaintext
> resource is made available through an embedded HTML document with a
> `pre' element containing the resource's content.

referenceToIframe.document.body.firstChild.firstChild.nodeValue

Works in IE too :)

Thanks.

Aaron
Received on Mon Nov 21 03:26:03 2005