Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
| Search | Today's Posts | Mark Forums Read
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 12th, 2005, 04:05 AM
Registered User
Join Date: Apr 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default changing two frams at the same time in NS

Hiya, i know this is going to sound like childs play for all you experianced programers out there, but im new and alot of this is greek to me, but im trying. What im trying to do is make a multi frame site change two frames at the same time, i have a basic menu one i like made with gifs as the images for the links. the problem im having it having the menu refresh to the base menu from an open tree menu while at the same time changing the main windows contents (eg. i have a menu open on the left with one like open to a multi line image with several links, above this like is a home button, i want to be able to click the home button and have the menu colapse to the basic menu as well as opening the main window to the home page) if that made any sense. drop me a line and i will try to explain better.

thanks loads

Old May 3rd, 2005, 07:28 PM
nzakas's Avatar
Wrox Author
Join Date: Dec 2004
Location: Peabody, MA, USA.
Posts: 217
Thanks: 0
Thanked 5 Times in 5 Posts

Try doing something like this:

function navigateHome() {

    top.frames["mainFrame"].location.href = "home.htm";
    top.frames["navFrame"].locaiton.href = "topmenu.htm";
Then in your link, do this:

<a href="javascript:navigateHome()">Home</a>
Hope this helps.

Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing image at run time Swati Chari Beginning VB 6 0 March 12th, 2008 06:02 AM
Changing Text Data to Date/Time jjc9809 Access 4 January 22nd, 2006 07:41 PM
How to print contents of IFrame when is it a frams nancy Javascript How-To 3 March 29th, 2005 10:47 AM
Changing DataBase at run time siwanski BOOK: Professional Crystal Reports for VS.NET 1 September 17th, 2004 03:24 AM
Changing forms properties at run time Louisa VB.NET 2002/2003 Basics 5 January 15th, 2004 01:07 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.