Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-12-2005, 02:59 PM   PM User | #1
fidgen
New Coder

 
Join Date: Apr 2005
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
fidgen is an unknown quantity at this point
Frameset and A Href Issues

Hiya,

I have what might be quite a simple problem, but the office is that hot that I just cant work it out!

What I want to do is have a script that will allow me to have a list of links <A href=""> but each with enough parameters to:

Open a new browser window
Create a frameset inside that window of 2 columns
Load xxxx.html into column 1
Load yyyy.html into column 2

The end effect can be seen here http://www.york.ac.uk/enterprise/eio...arch_biol.html I just want to be able to change all the details via the <a href>'s rather than create dozens of individual HTML pages.



What I considered so far, but havent been able to achieve is to have the onclick action open the new browser, and load the frameset html. Then the other parameters load the correct HTML's into the frames that were just created.




I hope this makes sense, as you can see I'm not thinking straight atm


Cheers
Hugh
fidgen is offline   Reply With Quote
Old 07-12-2005, 03:18 PM   PM User | #2
nikkiH
Senior Coder

 
nikkiH's Avatar
 
Join Date: Jun 2005
Location: Near Chicago, IL, USA
Posts: 1,973
Thanks: 1
Thanked 32 Times in 31 Posts
nikkiH is on a distinguished road
As long as you are aware of all the problems with framesets...

Does this help at all?
http://www.ipwebdesign.net/useful_dynamicFrameset.html
__________________

If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
Bored? Visit
http://www.kaelisspace.com/
nikkiH is offline   Reply With Quote
Old 07-12-2005, 03:23 PM   PM User | #3
fidgen
New Coder

 
Join Date: Apr 2005
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
fidgen is an unknown quantity at this point
Thanks for the link, but as it happens I found exactly what i needed here :P

http://codingforums.com/showthread.p...+frames+window

Glens zip file at the bottom of the thread is the solution. And yes, I dont like frames really either, but in this case it is the perfect solution for what I need to do
fidgen is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

Forum Jump


All times are GMT +1. The time now is 10:10 AM.


Advertisement
Log in to turn off these ads.