Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Password Reminder
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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

Reply With Quote
  #2 (permalink)  
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)
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 09:40 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.