Click to See Complete Forum and Search --> : Two clicks in one


lil_mary
01-14-2001, 09:43 AM
Hi, this is gonna be hard to explain so bare with me...

I have a webpage with two frames on it.

Frame 1 has a menu in it.

Frame 2 has the main body of the page in it.

I want to be able to click on a button in the menu and have it do the following:

Frame 1 change to a different menu

Frame 2 change htm file.

Is this possible? If so, could someone please help me out with the coding for it.

Thanks

------------------
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

Angelus
01-14-2001, 02:00 PM
Make a link to another page with again two frames in it and that opens in the entire window.

Or else make your pages with tables, then you wouldn't have to worry about multiple pages.

------------------
Just something (http://users.pandora.be/angelus)

Grizzly
01-14-2001, 03:39 PM
That's a JavaScript solution right there. Lemme guess, are you trying to create the illusion of an expandable menu? Folders --> subfolders stuff like that? There are better ways to go about doing that so the menu frame doesn't have to reload on everyclick. Those better ways are also done with JavaScript, but it's alot more complicated.

Get back to us here on that, and I'll see if I can drum up some JavaScript for ya.

nkeezer
01-14-2001, 07:18 PM
If I understand you correctly, you'll want to use a bit of Javascript (OnClick and Window.Self.Location). Go to www.metavista.com (http://www.metavista.com) (a site I built) and steal my code.


Originally posted by lil_mary:
Hi, this is gonna be hard to explain so bare with me...

I have a webpage with two frames on it.

Frame 1 has a menu in it.

Frame 2 has the main body of the page in it.

I want to be able to click on a button in the menu and have it do the following:

Frame 1 change to a different menu

Frame 2 change htm file.

Is this possible? If so, could someone please help me out with the coding for it.

Thanks





------------------
www.nweb-design.com (http://www.nweb-design.com) <-- Send me a client, I'll send you a 5% finder's fee

"You have just destroyed one model XQJ-37 nuclear powered pansexual roto-plooker....and you're gonna have to pay for it." -- Frank Zappa