Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old June 5th, 2005, 10:51 PM
mason mason is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK
Posts: 58 mason User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Frames

I have four frames. The first frame has links in it, the others all display info. Is there anyway to make all three change when I click a link?

Reply With Quote
  #2  
Old June 6th, 2005, 12:41 AM
moon moon is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 356 moon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 56 m 39 sec
Reputation Power: 2
Send a message via Yahoo to moon
RE: Frames

I have no idea on this, but iam sure that you can achieve what you want if use tables or css in designing your web pages.
do u know that frames has some pros and cons?

Reply With Quote
  #3  
Old June 6th, 2005, 01:20 AM
phu phu is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 8 phu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Frames

This can be done with javascript -- you need client-side scripting.

This might help:
http://webmonkey.wired.com/webmonkey/97/02/index4a.html?tw=authoring

Reply With Quote
  #4  
Old June 6th, 2005, 08:06 AM
mason mason is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK
Posts: 58 mason User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Frames

Thanks. I can't use tables because of the nature of the site (I won't try to explain because it's quite complicated).

It gets a little harder though, one of the frames I am trying to change is inside another frame...I can change it on it's own from the link but not with any others.

My thoughts were perhaps you could target the header("Location:...") function to open in a different frame but I'll give the JS ago

Reply With Quote
  #5  
Old June 6th, 2005, 08:45 AM
mason mason is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK
Posts: 58 mason User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Frames

The JS doesn't work. I can only change one frame at a time using the HTML target tag.

This is the JS I was using...

<a href="home.php"
onClick="window.category.location='cat1.php'" target="contents">
Home</a>

I've tried swopping it around (having 'contents' in the JS) but still, only the frame names in the target works. I've tried the page in both FF and IE.

Reply With Quote
  #6  
Old June 6th, 2005, 02:35 PM
Andrew's Avatar
Andrew Andrew is offline
Moderator
Click here for more information. Click here for more information
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,945 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 5 h 58 m 47 sec
Reputation Power: 3
RE: RE: Frames

Code:
<a href="home.php" onClick="javascript:window.self.location='cat1.php'" target="contents">
Home</a>


Try that...

Reply With Quote
  #7  
Old June 6th, 2005, 02:35 PM
System System is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 665 System User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Message Moved

Thread moved from 'PHP Coding' to 'Client Side Things' by andrew.

Reason: Clientside related

Reply With Quote
  #8  
Old June 6th, 2005, 03:01 PM
mason mason is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK
Posts: 58 mason User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: Frames

nope - no good

In IE I have debug turned on and it says...

'window.menu2' is null or not an object

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Frames


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT