Load HTML file to IFrame : IFrame « GUI Components « JavaScript DHTML

JavaScript DHTML
1. Ajax Layer
2. Data Type
3. Date Time
4. Development
5. Document
6. Dojo toolkit
7. Event
8. Event onMethod
9. Form Control
10. GUI Components
11. HTML
12. Javascript Collections
13. Javascript Objects
14. jQuery
15. Language Basics
16. Node Operation
17. Object Oriented
18. Page Components
19. Security
20. Style Layout
21. Table
22. Utilities
23. Window Browser
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorial
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
JavaScript DHTML » GUI Components » IFrame 
Load HTML file to IFrame

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
  <TITLe>Demo of DHTML Grid V 0.92</title>
  <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <META http-equiv="Author" content="Charles Dickens">
        <STYLE type="text/css"
    A:link {color:#FFFFFF;   font-weight: normal; text-decoration: none;}
    A:visited {color:#FFFFFF; font-weight: normal; text-decoration: none;}
    A:active {color:#FFFFFF; font-weight: normal; text-decoration: none;}
    A:hover {color:#FFFFFF; font-weight: normal; text-decoration:underline;}
    BODY {bottom-Margin:0px; background-color:#003399; left-Margin:20px;
      top-Margin:0px; right-Margin:0px; color:#FFFFFF}
    TD {font-family: "Verdana, Arial"; font-size: 12px;}
    .bigheader {font-family: "Verdana, Arial"; font-size: 28px; font-weight: bold}
    .mnuheader {font-family: "Verdana, Arial"; font-size: 16px;}
    .inputBox border-style: solid; border-width: 1px; font-family: verdana, arial,
        sans-serif; font-size: 9px; padding: 0px; color:black; backgroundcolor: #FFFFEE}
  </STYLE>
</HEAD>
<BODY
  <TABLE width ="600" align="center" cellpadding="0px" cellspacing="1px">
    <TR><TD align="center">
      <U><FONT class="bigheader" color="#FF9933">THE </FONT>
      <FONT class="bigheader" color="#FFFFFF">&lt;DHTML&gt; </FONT>
      <FONT class="bigheader" color="#FF9933">Grid</FONT></U>
    </TD></TR>
    <TR><TD align="center">
    </TD></TR>
    <TR><TD align="center">
      <TABLE cellpadding="1px" cellspacing="0px" bgcolor="#FFFFFF" width="596px">
        <TR><TD>
          <TABLE cellpadding="1px" cellspacing="1px" bgcolor="#003399" width="100%">
            <TR><TD>
              <TABLE cellpadding="1px" cellspacing="2px" bgcolor="#FFFFFF" width="100%">
                <TR><TD>
                  <TABLE cellpadding="8px" cellspacing="1px" bgcolor="#000000" width="100%">
                    <TR><TD>
                      <BR><FONT color="#FF9933">&#164;</FONT> 
                      This is the test area for ver 0.92 which will be released soon.
                      For the latest <i>stable</i> release click on the download link above.
                      <FONT color="#FF9933">&#164;</FONT> 
                    </TD></TR>
                  </TABLE>
                </TD></TR>
                <TR><TD>
                  <TABLE cellpadding="8px" cellspacing="1px" bgcolor="#000000" width="100%">
                    <TR><TD>
                      <IFRAME id="frmGrid1" name="frmGrid1" scrolling="auto" frameborder="0" src="4colGrid.htm" width="601" height="150"></IFRAME>
                      <FONT color="#FFFFFF">Col &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Col &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Col &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Col 4</FONT><BR>
                      <FORM>
        <INPUT id="Col1" style="FONT-SIZE: 8pt; LEFT: 0px; WIDTH: 102px; BORDER-TOP-STYLE: none; FONT-FAMILY: Verdana, Arial; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" type="text" maxLength="6" name="Col1">
        <INPUT id="Col2" style="FONT-SIZE: 8pt; LEFT: 0px; WIDTH: 102px; BORDER-TOP-STYLE: none; FONT-FAMILY: Verdana, Arial; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" type="text" maxLength="6" name="Col2">
        <INPUT id="Col3" style="FONT-SIZE: 8pt; LEFT: 0px; WIDTH: 102px; BORDER-TOP-STYLE: none; FONT-FAMILY: Verdana, Arial; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" type="text" maxLength="6" name="Col3">
        <INPUT id="Col4" style="FONT-SIZE: 8pt; LEFT: 0px; WIDTH: 102px; BORDER-TOP-STYLE: none; FONT-FAMILY: Verdana, Arial; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" type="text" maxLength="6" name="Col4"><BR>
        <INPUT value="ADD" name="cmdAddRow" id="cmdAddRow" title="Add Row" style="FONT-WEIGHT: bold; FONT-SIZE: 8pt; LEFT: 0px; WIDTH: 102px; FONT-FAMILY: Verdana, Arial;" type="button" onclick="javascript: top.frames['frmGrid1'].addRow(Col1.value, Col2.value , Col3.value, Col4.value), Col1.value='', Col2.value='', Col3.value='', Col4.value='';" >
        <INPUT value="Delete" name="cmdDeleteRow" id="cmdDeleteRow" title="Delete Last Row" style="FONT-SIZE: 8pt; LEFT: 93px; WIDTH: 102px; FONT-FAMILY: Verdana, Arial; " type="button" onclick="javascript: return top.frames['frmGrid1'].deleteLastRow()">
        </FORM>
        <BR><BR>
                      <FONT color="#FF9933">&#164;</FONT> The biggest feature of ver 0.92 is that it works both IE 5+ and in Netscape 6+ <BR>
                  <FONT color="#FF9933">&#164;</FONT> Mouseover to select a row. <BR>
                      <FONT color="#FF9933">&#164;</FONT> Select any row and hit Delete key to delete it <BR>
                  <FONT color="#FF9933">&#164;</FONT> Click to edit.... and everything else
</TD></TR>
                  </TABLE>
                </TD></TR>
              </TABLE>
            </TD></TR>
          </TABLE>
        </TD></TR>
      </TABLE>
    </TD></TR>
  </TABLE>
  </BODY>
</HTML>


           
       
LoadHTMLIntoIFrame.zip( 9 k)
Related examples in the same category
www___.__j__a___v_a___2___s___.__c_o___m___ | |Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.