Results 1 to 3 of 3

Thread: Linking In Frames

  1. #1
    Join Date
    Nov 2005
    Posts
    24
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Linking In Frames

    I have a 'Terms of Membership' agreement on my site. In order for the prospective client to proceed to my registration page, they must first agree to my terms.

    In order for this to occur (so that they must actively participate and thus make a decision), I have included, at the bottom of my Terms page, an 'I Agree to Your Terms' checkbox.

    The checkbox works perfectly with one exception. My site consists of three frames (top, left and main - although it appears frameless). When a client clicks the 'I Agree' checkbox and then the accompanying 'Proceed' button, a new window opens. My desire is to have it open.....without a new window or within the 'main' section.

    Below is the code I am using in my header.

    <script language="JavaScript"><!--
    function BuyNow() {
    if (document.frmAgreement.checkbox.checked) {
    MyVal = 1;
    } else {
    MyVal = 0;
    }
    if (MyVal == 0) {
    alert("You have not checked the Terms of Membership box. You cannot proceed with registering if you do not agree to abide by the Terms of Membership.");
    } else {
    <!-- PLACE LINK -->
    window.open('../main/register.php');
    }
    }
    // --></script>
    Is what I am asking possible? Every javascript and/or DHTML tutorial I can locate responds with the assumption that a new window is desired.

    Thanks!

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Instead of
    Code:
    window.open('../main/register.php');
    use
    Code:
    window.location.href= '../main/register.php';
    Last edited by Twey; 12-15-2005 at 03:45 PM. Reason: Removed the treatise on communism I pasted by mistake.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Nov 2005
    Posts
    24
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    THANK YOU Twey!!

    That worked perfectly!!

    So close yet so far.

Bookmarks

Posting Permissions

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