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
    Senior Coder
    Join Date
    Apr 2005
    Posts
    1,051
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Refreshing the page, method for.

    ok, i know i'm approaching this the wrong way however i can't think of any other way to do this right now.
    I know there is an easy way to do it, i just think i'm too stubborn in my ways to allow myself to think of it.

    a code solution is not required for this thread, simple plain english solution will suffice.

    So,
    I have my main page title index.php

    when the page loads I check to see if the url var 'page' is loaded, if not I append it to the url.

    so now i have:

    mysite.com/index.php?page=whatever

    now, the values passed into page are the current page urls (minus the file type *.php) and are needed for navigation amungst other things.

    Now, how the navigation works is:
    The page is a single doc with an iframe in it, selecting a 'tab' from the tab lists at the top changes the iframe src, some style properties using JS (making the tab appear selected) it also should change the page=whatever to page=newpage.

    The purpose of changing the page=whatever value to the current page is so I can track the 'current tab' if the user reloads the index.php (by submitting a form from the main doc.)

    Please any help would be greatly appreciated.

    I have an example posted online right now but I forget the url, if you need more clerification please ask and I will be more than happy to post it.

    thankyou,

    Rob Lemon.
    public string ConjunctionJunction(string words, string phrases, string clauses)
    {
    return (String)(words + phrases + clauses);
    }
    <--- Was I Helpfull? Let me know ---<

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,960
    Thanks
    0
    Thanked 236 Times in 233 Posts
    What exactly is your problem?

  • #3
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    just use cookies to store the current page.
    *keep it simple (TM)


  •  

    Posting Permissions

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