SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Mar 2001
    Location
    Highlands Ranch, Colorado
    Posts
    614
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello all,
    I have a web page using frames. If people bookmark single pages or come through a Search Engine it could be that they open pages without being in the frameset. I could use Javascript to tell each page to look for the frameset, etc.:

    script language=javascript type="text/javascript">
    <!-- Hide script from old browsers

    if (top.location == self.location) {
    top.location.href = "frameset2.html"
    }
    // End hiding script from old browsers -->
    </script>


    My question is - before I put it on each page:

    If I see this script right - it will always link the user to the main home page and not to the page they have actually bookmarked. That's not what I want. Is there a way to tell the frameset just to load the bookmarked page in the frame set and not the main page? I want people to be able to bookmark single pages but when they reopen them later on, that the frameset is being loaded 'around' the bookmarked page. Any ideas?

    Thanks!

    Christoph

  2. #2
    Bimbo With A Brain! silver trophy Saz's Avatar
    Join Date
    Mar 2001
    Location
    Kent, United Kingdom
    Posts
    5,275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I seem to be one of the few people round here who doesn't mind using frames (although I have to say that I don't have a preference between them and using tables), however, I have to say that I think to enable your users to bookmark pages within your site and not the main page, you're going to have to make it without frames.
    Saz: Naturally Blonde, Naturally Dizzy!
    No longer Editor of the Community Crier.

    Don't mind me, I'm having a BLONDE moment!


Bookmarks

Posting Permissions

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