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: Thomas 'PointedEars' Lahn <PointedEars@web.de>
Date: Fri Nov 11 2005 - 00:45:41 CET

Aaron Gray wrote:

>> 1) Never ever give the names/id using generic html element names
>> ("iframe", "textarea" etc.)
>
> Okay :)

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.
 
>> 2) <http://www.javascripttoolbox.com/bestpractices/> see about
>> addressing frames/form elements - helps a lot.
>
> 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.

PointedEars
Received on Mon Nov 21 03:25:02 2005