SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Oct 24, 2000, 16:08 #1
- 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
-
Oct 24, 2000, 17:29 #2
- 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')"
-
Oct 25, 2000, 08:43 #3
- 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