#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Posts
    3
    Rep Power
    0

    Loading to target frame


    Hi, hope this is a simple question !

    I have an index frame with a login form+button, but this code loads the next page into its own frame. I need to load a page into a different target frame (i.e. main frame).

    <!-- Begin
    function Login(){
    var done=0;
    var password=document.login.password.value;
    password=password.toLowerCase();
    if (password=="password1") { window.location ="protected.html"; done=1; }
    if (password=="password2") { window.location="page2.html"; done=1; }
    if (done==0) { alert("Invalid login!"); }
    }
    // End -->

    Any clues guys ?? Thanks for help !!

    andycee
  2. #2
  3. Senior Member
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Aug 2003
    Location
    Toronto
    Posts
    1,614
    Rep Power
    18
    top.frames['mainFrame'].location ="protected.html";

    Welcome to devShed!
    webM

    for $i(0..20){for($j=0;$j<=$i;$j+=2){print pack(qq{H2},
    substr(qq{5f5745424d415354415f},$j,2));}print qq{\n};};
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2003
    Posts
    3
    Rep Power
    0
    Spot on!

    Many thanks for the help webmasta

    Andycee

IMN logo majestic logo threadwatch logo seochat tools logo