Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Unusual problem controlling frames
Old 03-23-2007, 06:15 PM Unusual problem controlling frames
larryweiss's Avatar
Super Talker

Posts: 117
Location: NEW YORK
Trades: 0
My site uses a javascript menu on the left side. This menu opens up multiple levels, so it can get pretty wide. (The third level can get to the middle of the screen.)

A particular job requires two pages to be displayed at the same time (for comparison).

My site template has a table. The left side cell is for the menu. The right side cell is for content.

I tried putting two I frames in the right panel, and controlling them with the menu. Everything worked great, except that ie would not generate a horizontal scrollbar, even setting scrolling to yes did not help.

I tried using a frameset. It worked perfectly except that the child menu levels would not overlap the right side frames, so they were invisible.

The current plan calls for using the original site template with the menu at left.
In the right side goes either:
  • An iframe within which is a frameset.
  • A virtual include of the same frameset.
Both plans worked in the sense that the menu now overlaps the frames. My problem is changing the code so that the two frames can still be controlled by the menu.

The menu link looks like this:
'Text',"javascript:loadTwo('../directory/file.htm','http://www.another-website.c
m/page.html')"],

The script in the head of the page is:
<script language="javascript">
function loadTwo(iframe1URL, iframe2URL)
{
parent.FRAME1.location.href=iframe1URL
parent.FRAME2.location.href=iframe2URL
}
</script>

The frames are named FRAME1 and FRAME2
Can you please help. What I need is to modify the script to refer to a frameset named fs.htm:
  • The frameset being inside of an iframe
  • Or the frameset being of a virtual include
  • Or a better way to do this.
__________________
Larry Weiss


Please login or register to view this content. Registration is FREE
| |
Please login or register to view this content. Registration is FREE
| |
Please login or register to view this content. Registration is FREE

Last edited by larryweiss; 03-23-2007 at 06:17 PM..
larryweiss is offline
Reply With Quote
View Public Profile Visit larryweiss's homepage!
 
 
Register now for full access!
Old 03-23-2007, 09:56 PM Re: Unusual problem controlling frames
larryweiss's Avatar
Super Talker

Posts: 117
Location: NEW YORK
Trades: 0
Thanks anyway guys. I figured it out myself.

parent.bigframe.FRAME1.location.href=iframe1URL

adding the name of the iframe (bigframe) did the job.
__________________
Larry Weiss


Please login or register to view this content. Registration is FREE
| |
Please login or register to view this content. Registration is FREE
| |
Please login or register to view this content. Registration is FREE
larryweiss is offline
Reply With Quote
View Public Profile Visit larryweiss's homepage!
 
Reply     « Reply to Unusual problem controlling frames
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.77995 seconds with 12 queries