PCTechTalkhttp://www.pctechtalk.com/forums/

Go Back   PCTechTalk > PC Tech > Web Related

Reply
 
LinkBack Thread Tools Display Modes
Old 02-19-2004, 03:43 PM   #1 (permalink)
Registered User
 
Colin-uk's Avatar
 
Join Date: Jan 2003
Location: UK
Posts: 928
Colin-uk is on a distinguished road
open multiple pages from one link?

no its not a php question for once lol

dont know if this this possible with javascript

im wanting to open 5 pages each in its own iframe from one html link in another iframe

any help appreciated
thanks
-c0lin
Colin-uk is offline   Reply With Quote
Old 02-20-2004, 03:54 AM   #2 (permalink)
Registered User
 
Colin-uk's Avatar
 
Join Date: Jan 2003
Location: UK
Posts: 928
Colin-uk is on a distinguished road
anyone..?
Colin-uk is offline   Reply With Quote
Old 02-20-2004, 09:45 AM   #3 (permalink)
Lurking AdMiN
 
Cirga's Avatar
 
Join Date: Mar 2003
Location: In my own little world. Buts its ok. They know me here.
Posts: 3,245
Cirga is on a distinguished road
Ooo C0lin.. thats a good one actually. Let me play around with some code .. I'll let you know if I can get that to work. At first glance I would say no.. but no telling whats possible in dreamweaver

I'll get back to ya on this today
__________________
Vote For Us! -- It will get you hot chicks. No really It will!


----
www.myTego.com - Give your devices a face! Dont be a conformist!
Cirga is offline   Reply With Quote
Old 02-20-2004, 01:17 PM   #4 (permalink)
Da House Nerd
 
greffov's Avatar
 
Join Date: Dec 1969
Location: One CPU Lane
Posts: 3,512
greffov will become famous soon enough
well, not to eat away the grass before Cirga's feet, but yes you can...

Code:
<script type="text/javascript">
  function multipleOpen() {
    document.getElementsByName("frame1").location="location1.html";
    document.getElementsByName("frame2").location="location2.html";
    document.getElementsByName("frame3").location="location3.html";
  }
</script>

<iframe id="frame1">
  foo
</iframe>

<iframe id="frame2">
  bar
</iframe>

<iframe id="frame3">
  eek!
</iframe>

<a href="javascript(void);" onclick="multipleOpen();">Click for some action!</a>

there are probably a zillion little errors in this piece of code, but this is the basic idea to do it.
__________________
Linux virusscanner detected a virus:
Windows 95 ... delete [Y/n] y
~
~

:wq
greffov is offline   Reply With Quote
Old 02-20-2004, 03:44 PM   #5 (permalink)
Registered User
 
Colin-uk's Avatar
 
Join Date: Jan 2003
Location: UK
Posts: 928
Colin-uk is on a distinguished road
thanks, it worked
Colin-uk is offline   Reply With Quote
Old 02-20-2004, 03:47 PM   #6 (permalink)
Da House Nerd
 
greffov's Avatar
 
Join Date: Dec 1969
Location: One CPU Lane
Posts: 3,512
greffov will become famous soon enough
geez, I made no errors?!?

hell, if so, I must be really an addict by now!
__________________
Linux virusscanner detected a virus:
Windows 95 ... delete [Y/n] y
~
~

:wq
greffov is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


All times are GMT -5. The time now is 06:48 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
2001 PCTechTalk