Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Apr 2005
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    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
    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/

  • #3
    New Coder
    Join Date
    Apr 2005
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •