history.go() and reload

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christian Ista

    #1

    history.go() and reload

    Hello,

    I explain the situation, I have 3 pages A, B and C.

    On the page A, I display some data, on this page there is an edit button.

    When I push on the edit button, I call the page B, on this page, a form with
    the data to edit.

    When I submit the form I call the page C to update the data in the database.

    That it's ok.

    After the update, I'd like to go back to page A, to do that, I do an
    history.go(-2). That's work but I see the old data, it's normal because I
    use the IE cache. The location I want to go is good (history.go(-2)) but I
    need to reload the data to see the change.

    Is there a javascript way to reload this page ?

    Thanks,

    C.


  • Bruce Duncan

    #2
    Re: history.go() and reload

    "Christian Ista" <ml@cista.be> wrote in message
    news:40a7c8d1$0 $252$4d4efb8e@r ead.news.be.uu. net...[color=blue]
    > Hello,
    >
    > I explain the situation, I have 3 pages A, B and C.
    >
    > On the page A, I display some data, on this page there is an edit button.
    >
    > When I push on the edit button, I call the page B, on this page, a form[/color]
    with[color=blue]
    > the data to edit.
    >
    > When I submit the form I call the page C to update the data in the[/color]
    database.[color=blue]
    >
    > That it's ok.
    >
    > After the update, I'd like to go back to page A, to do that, I do an
    > history.go(-2). That's work but I see the old data, it's normal because I
    > use the IE cache. The location I want to go is good (history.go(-2)) but I
    > need to reload the data to see the change.
    >
    > Is there a javascript way to reload this page ?
    >
    > Thanks,
    >
    > C.
    >[/color]

    On page C...don't use history.go(-2)...try calling page A again with
    something like location.href=" pageA.html"

    HTH
    -Bruce Duncan


    Comment

    • Christian Ista

      #3
      Re: history.go() and reload

      [color=blue]
      > On page C...don't use history.go(-2)...try calling page A again with
      > something like location.href=" pageA.html"[/color]

      Yes of course but I call B and C from A and sometimes from other page.

      C.


      Comment

      Working...