SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Oct 2007
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Frameset and windows in firefox

    Hi ,
    I am having the following framesets.

    Parent Main
    |
    ----------------------------------
    | |
    Top1 Bottom1
    |
    Open window
    | Child -> name of the file contains
    -------------------------- the below frameset.
    | |
    Top2 Bottom2
    I explain here:
    I am having the main page. The main page contains two frameset Top and Bottom From the bottom i open one window which consists of frameset.

    So what i do from the Bottom2 i give the alert as
    alert(window.location); // Working fine it shows the Bottom2.
    alert(window.parent.location); // It shows the Child as the name.
    alert(window.top.location); // It shows the Top2 as the output.

    I want to get the Bottom1 as the parent to refresh that page.
    But i can't do it.

    Kindly help me...,,,

    With Regards,
    Rohini

  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    first of all. Do all frames contain content based on your server? If not, you won't be able to get bottom1.

    You can use the window.frames array, which basically contains all the frames available. I've not tried it but

    windows.frames['top1'].frames['bottom1'].location



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
  •