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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Sep 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Linking to Framesets from Outside Source

    Hi everyone...I hope someone can help.

    Here's my situation: Our website's main page is a frameset with only two frames (a top one for identification and navigation and a bottom one for content). When we send out an email promotion to clients with a link to a page on our website, I'd like to know if anyone knows if it's possible to have the frameset load with the properly linked page in the lower frame rather than have only the content page load into the browser.
    Is there a special way to write the link? Or do I need to include some kind of Javascript function in the frameset or the top part's html to catch the link and display it properly? Or is it even possible?

    Thanks in advance.....

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Frames and Framesets have been creating these kinds of problems ever since they were invented. I highly recommend that the next time you redesign your web site that you make the use of frames historical.

    For now though you can use a couple of workarounds, one possibility is to create a new frameset with the normal top frame and the targeted content page instead of the normal default content page and send the url of the new frameset instead of the url of the content page.

    The other possibility is to add some javascript to your frameset to see if there's an additional parameter on the url and to load the apppropriate content page based on that parameter, otherwise leave the default content page. Then you send out the modified home page url instead of the content page url.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #3
    New to the CF scene
    Join Date
    Sep 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you kindly, Roy. I believe my boss would prefer the Javascript option. Do you know of anywhere I can get some info on doing that particular function?

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    There should be an example or two right here in the "Javascript" forum.
    Check out the Forum Search. It's the short path to getting great results from this forum.


  •  

    Posting Permissions

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