Go Back   PCMech Forums > Help & Discussion > Internet, Web Applications, & The Cloud

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-30-2002, 04:58 AM   #1
Member (9 bit)
 
Join Date: Jan 2002
Location: UK
Posts: 389
Small html question

Im using frames for something im doing for smoeone (i no tut tut to frames)

but im wondering if i can have a normal href link changing two frames at the same time

For example the normal link would be like

href="one.html" target="frameone"

So if someone clicked one that it would load page one.html into frame one

What im trying to do is make it load into another frame too, like on the same click load
one.html target="frameone"
two.html target="frametwo"

Can this be done?

(sorry if im not very clear)
Battery Powered is offline   Reply With Quote
Old 07-30-2002, 07:18 AM   #2
Member (10 bit)
 
Join Date: Apr 2001
Location: Michigan
Posts: 850
Send a message via ICQ to HackinCowboy
You could just the onClick function and change frameTwo using javascript. Or you could put in the 'one.html' page in the body onLoad you could have it load up frameTwo.
HackinCowboy is offline   Reply With Quote
Old 08-01-2002, 07:04 PM   #3
Member (9 bit)
 
Join Date: Jan 2002
Location: UK
Posts: 389
Would it be possible for you to give some examples?
Battery Powered is offline   Reply With Quote
Old 08-02-2002, 07:38 AM   #4
Member (10 bit)
 
Join Date: Apr 2001
Location: Michigan
Posts: 850
Send a message via ICQ to HackinCowboy
Here ya go:
Create a function in Javascript
Code:
function multiLoad(doc1, doc2)
{
     parent.frameOne.location.href=doc1;
     parent.frameTwo.location.href=doc2;
}
Here's your link:
PHP Code:
<a href="javascript:multiLoad('one.html', 'two.html')">Load Em</a
Hope this helps.
HackinCowboy is offline   Reply With Quote
Old 08-02-2002, 07:49 AM   #5
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
No need for a space char between "java" and "script":

<a href="javascript:multiLoad('one.html', 'two.html')">Load 'Em</a>
aym is offline   Reply With Quote
Old 08-02-2002, 07:58 AM   #6
Member (10 bit)
 
Join Date: Apr 2001
Location: Michigan
Posts: 850
Send a message via ICQ to HackinCowboy
Yea i know, the PHP tags put that in there. How do you insert an HREF in these boards? The CODE tags didn't work and I turned off the Automatically parse URLs.
HackinCowboy is offline   Reply With Quote
Old 08-02-2002, 08:03 AM   #7
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
I use &lt; for < and &gt; for >
aym is offline   Reply With Quote
Old 08-02-2002, 08:06 AM   #8
Member (10 bit)
 
Join Date: Apr 2001
Location: Michigan
Posts: 850
Send a message via ICQ to HackinCowboy
Thanx. Seems like there should be a way to do it. The code tags should just insert text as is without any converting. Oh well..
HackinCowboy is offline   Reply With Quote
Old 08-02-2002, 08:11 AM   #9
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
Yep, I've noticed this before, but they are useful for keeping source code formatted.
aym is offline   Reply With Quote
Old 08-05-2002, 06:10 PM   #10
Member (9 bit)
 
Join Date: Jan 2002
Location: UK
Posts: 389
Thx loads for the help, and i've found the adding hrefs can be a pain - i've always used the methode aym_7 mentioned

thx again for the help
Battery Powered is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:31 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2