Link to home
Start Free TrialLog in
Avatar of kateilles
kateilles

asked on

Frames can I make 2 events happen

I am using frames for navigation.  What I would liked
to do is to click on a link in the left nav bar and
have 2 things happen - update content in the main frame
(know how to do that) and update the left nav bar as well
with a new page
Avatar of MasseyM
MasseyM

<A HREF="link to make frame 1 go to" TARGET="Frame1" onClick="Javascript:Frame1.location.href='http://yourstuff';Frame2.location.href='http://yourstuff';"

( I do not know javascript very well.. I could be TOTALLY wrong for all I know.)
Avatar of kateilles

ASKER

Any way to do this without JavaScript?  I am making my site fit the lowest common denominator and really don't want to use JavaScript.
Well.... hmmmm... I believe the answer is no.  But a thought just crossed my mind.  Maybe you can have, in a META tag an auto-redirect, but the targeting would be the problem.  Basically, javascript is the easiest and most relaible way to go...
Any way to do this without JavaScript?  I am making my site fit the lowest common denominator and really don't want to use JavaScript.
Massey is on the right track. Here is the way to do it. Make your link:

<a href="onepage.html" target="firstframe">

and in the header of onepage.html put the following:

<meta http-equiv="refresh" content="0;url=secondpage.html;target=secondframe">
I have tried the refresh statement.  However it keeps refreshing the main frame as
opposed to the left navbar (tried on services and local directory)  This is the statement I have used <meta http-equiv="refresh" content="0;url=leftnav.htm;target=leftnav">

http://searchers.net/testrefresh/tritest.htm
OK, it doesn't work. Reject my answer. You need a javascript solution. It will work in any browser from NS2+ and IE3+. Isn't that good enough?
I am trying to stay away from JavaScript as it doesn't work on all browsers.
Almost every browser. Or solve your problem differently.
if you're aiming for the lowest common denominator of browser, then should you be using frames? If the browser supports frames, then it will support the javascript neccessary to redirect them.I'd go with MasseyM's answer.
ASKER CERTIFIED SOLUTION
Avatar of mouatts
mouatts

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I would go with MasseyM too :)