Results 1 to 2 of 2

Thread: How to target frames with Encrypted password script?

  1. #1
    Join Date
    May 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation How to target frames with Encrypted password script?

    1) Script Title:
    Encrypted Password script
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamicindex9/password.htm
    3) Describe problem:
    The script itself works, but how do I target it to a specific frame? For example, my website has 3 frames within the frameset. The script is currently running in the 'topFrame', so everytime I login, it automatically opens the webpage inside the 'topFrame'. However, I want it to open the webpage inside the 'mainFrame'. How would I go about modifying it so that it can target frames? I've tried things such as, target="mainFrame", but that hasn't been any help. Any help is appreciated.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Replace:

    Code:
    window.location=password+".htm"}
    with:

    Code:
    top.frames['mainFrame'].location.href=password+".htm"}
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •