SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Addict
    Join Date
    Jun 2004
    Location
    germany
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Explorer History Problem-Urgent

    Hello I have 2 pages.
    I call Page1 and Page2
    User enter some info in Page1 and go to Page2 and if they want any modifications they will go to page1 again and to do so i have used history.back and it works fine.
    My problem was that in Page1 i am creating some dynamic controls like Some buttons and Divs to guide the user based on the input they give. So user click any of those dynamically created buttons (created using javascript)
    and go to page2, when i put history.back i am only getting the page without those dynamic controls i have created. Is there anyway to get those dynamic controls also ?
    Thanks and Regards
    Knowledge is all about Sharing

  2. #2
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In what browser are you having this issue?

  3. #3
    SitePoint Addict
    Join Date
    Jun 2004
    Location
    germany
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Internet Explorer
    Knowledge is all about Sharing

  4. #4
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You get any JavaScript errors? Got any code to show?

  5. #5
    SitePoint Addict
    Join Date
    Jun 2004
    Location
    germany
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There were no errors. History works ok except the dynamic controls which i created before going to Page2 and when come back to Page1 not shows.
    Knowledge is all about Sharing

  6. #6
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Difficult to know waht the problem is without seing any code or url

  7. #7
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,785
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Any cchanges that you make to a web page are not saved in the history version. If you want to keep the changes store info in a cookie to allow the page to reinstate them when it is redisplayed.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  8. #8
    SitePoint Addict
    Join Date
    Jun 2004
    Location
    germany
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh i c.
    So I should save the settings in a cookie and then when they click back reload the page getting information from Cookie and restructure that?
    Ok Thanks Pepejeria and felgall
    Knowledge is all about Sharing


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
  •