Using iframes in java.

Discussion in 'Java' started by Gareth, Jul 28, 2003.

  1. Gareth

    Gareth Guest

    Hi Everyone

    Can anyone tell me why loaded.htm doesn't load in iframe lmenu


    <html>
    <head>
    <title>Gareth Homemade pulse site</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <script language="JavaScript">
    <!--

    function login(password) {
    if (password == "1") {
    alert("You have entered the correct password! Click ok to access the
    secure section");
    document.frames('parent.frames[\'lmenu\']','\loaded.htm');
    }
    else {
    alert("You have entered an invalid password!");
    }
    }
    //-->
    </script>
    </head>

    <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" rightmargin="0"
    topmargin="0"scroll="no">
    <table width="785" border="0" cellpadding="0" height="320"
    cellspacing="0" bgcolor="#003399" align="center"
    bordercolor="#FFFFFF">
    <tr>
    <td bgcolor="#FFFFFF" >
    <table width="100%" border="5" cellspacing="0" cellpadding="0"
    bgcolor="" bordercolor="#333333" align="center">
    <tr >
    <td bordercolor="#333333" height="42" bgcolor="#FFFFFF">
    <div align="center"><font size="+3">You have entered IT
    Secure Site.<br>This Site is for IT Personnel Only </font></div>
    <form name="form1" method="post" action="">
    <div align="center">Please enter your password:
    <input type="text" name="textfield">
    <input type="submit" name="Submit" value="Submit"
    onClick="login(textfield.value)"></div></form>

    </td>
    </tr>
    <tr >
    <td bordercolor="#333333">
    <table width="1000" border="0" cellspacing="0"
    cellpadding="0" bgcolor="#FFFFFF" align="center"
    bordercolor="#FFFFFF">
    <tr bordercolor="#000000" bgcolor="#000000">
    <td bordercolor="#FFFFFF" bgcolor="#FFFFFF">
    <div align="center"></div>
    </td>
    </tr>
    </table>
    <iframe name="lmenu" width="30%" height="540"
    frameborder="0" src="Blank.htm"><iframe name="main"
    width="70%"height="540" frameborder="0" src="blank.htm"></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    <br>
    <br>
    </body>
    </html>
     
    Gareth, Jul 28, 2003
    #1
    1. Advertising

  2. Marco Schmidt, Jul 28, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. xboxsnippets.com

    Using iFrames on your front page

    xboxsnippets.com, Jan 24, 2005, in forum: HTML
    Replies:
    4
    Views:
    515
    gonebye
    Jan 26, 2005
  2. Clyde
    Replies:
    0
    Views:
    79
    Clyde
    Jul 6, 2005
  3. Owen

    Using frames / iframes

    Owen, Sep 12, 2005, in forum: Javascript
    Replies:
    1
    Views:
    76
    Java script Dude
    Sep 13, 2005
  4. using iframes in Safari

    , Mar 16, 2007, in forum: Javascript
    Replies:
    5
    Views:
    172
  5. Snolly
    Replies:
    1
    Views:
    129
    Thomas 'PointedEars' Lahn
    Aug 9, 2008
Loading...

Share This Page