[Javascript] Iframe's Real innerHTML

Flavio Gomes flavio at economisa.com.br
Thu Feb 10 11:32:22 CST 2005


Roger,

 In which browser this solution worked?
 I tried here in mozilla 1.7 and oFrame.document returned undefined and 
on IE 6.0 it returned a "Document Object" but oFrame.document is the 
same as window.document, so it didn't helped much.

 If anyone has got any other idea, I'd be grateful to hear them!! ^^

Ps.: Only a magic RegExp  will save this time?? o.O

Shawn Milo wrote:

>Sorry, no regex.  :o( I'll try to throw one in to the list soon, in
>response to a question that can be solved more simply some other way,
>don't you worry. Regular expressions are fun.  :o)
>
>Shawn
>
>
>
>On Thu, 10 Feb 2005 09:14:43 -0500, Roger Roelofs <rer at datacompusa.com> wrote:
>  
>
>>Flavio,
>>On Feb 10, 2005, at 9:04 AM, Flavio Gomes wrote:
>>
>>    
>>
>>>Hello everyone,
>>>
>>> I got myself on a kind of a little problem that I couldn't find a
>>>solution yet.
>>> In my program there's an iframe that does some calculations and thru
>>>JavaScript I change it's (the iframe's) "src" attribute to recalculate
>>>the value. But I couldn't find the way to bring it back to JavaScript.
>>>
>>>The better (and not working =] ) aproach I could do was:
>>>
>>>"""""""""""""""""""""
>>>   <iframe id=myIFrame src="medoescalculations.html">This is not what
>>>I want </iframe>
>>>       <script>
>>>       oFrame = document.getElementById(myIFrame);
>>>       alert(oFrame.innerHTML);
>>>   </script>
>>>"""""""""""""""""""""
>>>      
>>>
>>What about
>>oFrame = document.getElementById(myIFrame).document;
>>
>>Roger
>>-------------------------------------------------------
>>Roger Roelofs                 web   www.datacompusa.com
>>Datacomp Appraisal Services   web   www.mhvillage.com
>>3215 Eaglecrest Drive, NE     Email rer at datacompusa.com
>>Grand Rapids, MI  49525-4593
>>
>>_______________________________________________
>>Javascript mailing list
>>Javascript at LaTech.edu
>>https://lists.LaTech.edu/mailman/listinfo/javascript
>>
>>    
>>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>  
>




More information about the Javascript mailing list