Results 1 to 2 of 2
  1. #1
    Newbie
    Join Date
    January 18th, 2005
    Posts
    24
    Hi,

    i included an iframe in a HTML document
    <iframe id="myiframe" src="summary.html">

    For further processing I want to read iframes complete HTML with
    x=window.frames.myEditor.document.documentElement.outerHTML;

    But there is a mistake:

    <TD >
    <DIV align="center">
    <FONT face="AGSouvenir">any word</FONT>
    </DIV></TD>

    is changed to

    <TD >
    <DIV align=center>
    <FONT face=AGSouvenir>any word</FONT>
    </DIV></TD>

    Inverted commas of <div> and <font> tags are lost.

    How can I solve this and get the iframes correct HTML?

    Thank you

    Ferdinand

  2. #2
    ABW Ambassador DesignerWiz's Avatar
    Join Date
    January 18th, 2005
    Location
    U.S.A
    Posts
    2,777
    Have you tried single quote?

    <TD>
    <DIV align='center'>
    <FONT face='AGSouvenir'>any word</ FONT>
    </ DIV></TD>

    or try different approach like:


    <iframe id="myiframe" style="height:200px;width:400px;" src="summary.html"></iframe>
    <script type="text/javascript">
    var MZ=(document.getElementbyId?true:false);
    var IE=(document.all?true:false);
    var winWidth=IE?document.body.clientWidth:window.innerWidth;
    var winHeight=IE?document.body.clientHeight:window.innerHeight;
    if(winHeight>500){
    if(IE){
    document.all['myiframe'].style.height="300px";
    }
    else if(MZ){
    document.getElementbyId('myiframe').style.height="300px";
    }
    }
    </script>

    Ray Thomas

    <a href='http://www.designerwiz.com'><img src='http://www.designerwiz.com/images/affilad1.gif' width=88 height=31 border=0>

  3. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Featured: Bing keeps my site in an iframe
    By teezone in forum Search Engine Optimization
    Replies: 26
    Last Post: July 19th, 2012, 01:45 PM
  2. Why use an iFrame for my links?
    By CrusaderAD in forum Amazon
    Replies: 7
    Last Post: August 16th, 2011, 07:01 PM
  3. HTML in datafeed stays HTML in file?
    By Nintendo in forum WebMerge (Fourthworld.com)
    Replies: 1
    Last Post: August 17th, 2004, 10:05 PM
  4. Calling .php using Iframe
    By ~Michelle in forum Programming / Datafeeds / Tools
    Replies: 5
    Last Post: April 6th, 2004, 04:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •