#1 (permalink)  
Old 05-12-2005, 09:30 AM
Registered User
 
Join Date: May 2005
Posts: 6
Changing the content of multiple frames by clicking a single link

Here's the deal: I've got a frameset containing a navbar and a nested frameset I'll call set B. Within set B I've got a banner frame, a content frame, and a local-links frame. I would like to know how I can click a link in the content frame and have NOT only the content frame itself change, but also the banner AND the local-links. Every time I've tried it, I keep getting new framesets within framesets -- sort of the effect you get when looking at a mirror through a mirror, and the image just goes on and on forever. It would be just as well if I could get the link within the content frame of B to replace ALL of frameset B at the same time, but I can't seem to get that right -- I wind up replacing frameset A at the same time. Thoughts?

Thanks!

(I hope that wasn't too confusing)
Reply With Quote

  #2 (permalink)  
Old 05-12-2005, 04:26 PM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,445
I believe you should be able to set up an onClick event in your link something like this:
Code:
<a href="#" onClick="javascript:framea.location.href='page1.html';frameb.location.href='page2.html';">
where framea and frameb are the names of your two frame.
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
  #3 (permalink)  
Old 05-13-2005, 06:22 AM
Registered User
 
Join Date: May 2005
Posts: 6
Thanks much, Curtiss. I actually found the solution just by using a simple javascript...it had been long enough since I'd done any coding that I'd forgotten that was a possibility. I'm a putz.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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


All times are GMT -5. The time now is 10:22 AM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter