Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-13-2009, 08:37 AM   PM User | #1
SystemJay
New Coder

 
Join Date: Mar 2009
Posts: 62
Thanks: 19
Thanked 1 Time in 1 Post
SystemJay is an unknown quantity at this point
Unhappy Go back one page and refresh that page

Hey,
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
question
and confuse people and double post the inputted texts if clicked "send again"?

Thanks in advance!
-Jay

Last edited by SystemJay; 05-13-2009 at 08:40 AM..
SystemJay is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:40 AM.


Advertisement
Log in to turn off these ads.