SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Aug 2001
    Location
    Amsterdam
    Posts
    788
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Jumping to mother frame....

    Hi guys..

    Yeah I know another frames question why don't you use tables but hey.. They wanted it this way..

    Any how.. I want a javascript that just checks if the "mother" page is set.. so for instance if I were to call page.php directly that it would check if the complete page is loaded and if not that it would load the complete site (index.php) and the pass the variable pagename for instance in the url thats fine but just that it would refresh the window also loading the nav. frame

    Help please
    the neigbours (free) WIFI makes it just a little more fun

  2. #2
    SitePoint Wizard silver trophy Jeremy W.'s Avatar
    Join Date
    Jun 2001
    Location
    Toronto, Canada
    Posts
    9,121
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Something like:
    Code:
    if(self.location.href==top.location.href)
    {
    top.location.href=='index.php?page=' + self.location.href;
    }
    Your php could then strip out the superfluous stuff and you'd be set
    SVP Marketing, SoCast SRM
    Personal blog: Strategerize
    Twitter: @jeremywright

  3. #3
    SitePoint Guru
    Join Date
    Aug 2001
    Location
    Amsterdam
    Posts
    788
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Jeremy!! That's what I was looking for
    the neigbours (free) WIFI makes it just a little more fun


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
  •