Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Split Screen with Frames

Status
Not open for further replies.

btgroup

MIS
Jan 21, 2003
64
US
Hi,

Please excuse me if this thread has already been posted. I can't seem to find it anywhere.

I have a page that I split into top and bottom sections with frames. When I click on items in the top frame, it will refresh items in the bottom frame.

My problem is that my navigation is also in the top frame and when I want to move to another page that does not use frames, only the top frame is being refreshed. The bottom frame lingers around on the page. In essence, the bottom of the old page is still showing.

Any ideas on how to reset the frames when I move off the frame page? I tried target="_top" and it didn't seem to help. I'm also open to another method of doing the same thing without frames at all, but I need horizontal scrollbars.

Thanks in advance.
 

target="_parent" should work or target=_blank" for a new window

what kind of thing are you trying to do without frames?
and why horizontal scroll bars they really are a big NO.

Chris.


Indifference will be the downfall of mankind, but who cares?
 
Thanks. I have been messing with this for a while and began with target=&quot;_parent&quot;. As it turns out, the problem resides in my javascript navigation menus. They require a <div> tag and the target=&quot;_parent&quot; doesn't work for them.

After I saw your message I eliminated the menu and used <a> tags. Everything ran perfectly. Looks like I'll be changing my navigation.

Sorry, I meant vertical scrollbars in my previous message. I am attempting to list items in the top frame and when I click on an &quot;Add Item&quot; link, it adds the appropriate item to a list that is displayed in the bottom frame. The top frame list can be long, so I need the vertical scrollbars. I also need a &quot;Show/Hide bottom list&quot; in the top frame.

Any ideas on doing it a better way would be much obliged.
 
Thanks again Chris. Turns out I was able to change my javascript navigation. I changed the javascript from

location.href = cmd
to
top.location.href = cmd

where cmd is the URL being passed from a <div> tag. No more lingering bottom frame!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top