Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New Coder
    Join Date
    Mar 2009
    Thanked 1 Time in 1 Post

    Unhappy Go back one page and refresh that page

    I have this kind of a problem in which I add a text to a site with an input field.
    The text appears on the same page. When I click submit, if I use go.back(-2)
    javascript, it does not refresh the page, and the user gets confused that
    nothing happened (but really happened, if he would just refresh that page).

    If i use: javascript:window.location.reload(history.go(-2)); the browser will
    pop up the question "page can not be shown unless sending the previous data.."
    if I click "send again" the action happens twice: the text is added two times.
    If i click "cancel" the action happens once: the text is added one time (ok!).

    So How can I remove/change the code so that the browser does not ask that
    and confuse people and double post the inputted texts if clicked "send again"?

    Thanks in advance!
    Last edited by SystemJay; 05-13-2009 at 08:40 AM.


Posting Permissions

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