SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Aug 2000
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have a web page made up of frames--a left frame then a nested frameset with top, middle, and bottom---and a right frame. A hotspot on the right frame generates a popup window. I want to be able to click on a hotspot within the pop up window and have an image fill the middle frame. My code actually works, but when I click on the popup window, I am getting the file structure of the folder that the htm files are in.
    Here is the code that is in the popup window....followed by the code for the onclick event.
    -------------------------------------------------

    function frameNavig(source) {
    opener.parent.frames['middle'].window.location= source;

    }

    ---------
    OnClick="parent.frameNavig('test.htm')"


    Please help me to pass the variable from the popup window into the frameset. Thanks.

    Kelly

  2. #2
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It looks to me like it should be:

    function frameNavig(source) {
    opener.parent.middle.location.href = source;

    }

    onClick="frameNavig('test.gif')"

  3. #3
    SitePoint Member
    Join Date
    Aug 2000
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Anarchos....it worked and is cleaner code but i still have the problem of after clicking on the area in the popup window, the popup window then displays the file directory of my hard drive...wierd but true. If I can stop that then it is perfect. If you or anyone know why it is doing that it would be great.

    Kelly


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
  •