|
| |
|
|
gcook1
Posts: 5 Joined: 2/20/2004 Status: offline
|
"are you sure" pop up - 2/20/2004 9:41:35
I've written a feedback page that asks several service level questions. When the user completes the form and hits the "submit" button, I'd like a pop-up window that asks "are you sure?" with "yes" or "no" buttons. How do I do that? Thanks for any help!
|
|
|
|
Giomanach
Posts: 6112 Joined: 11/19/2003 From: England Status: offline
|
RE: "are you sure" pop up - 2/20/2004 9:51:58
Welcome to Outfront Is this of any good to you? Dan
_____________________________
|
|
|
|
gcook1
Posts: 5 Joined: 2/20/2004 Status: offline
|
RE: "are you sure" pop up - 2/20/2004 10:09:51
Yes, that's what I'm looking for. Except that pop up occurs right when you go into the page. I'd like it to pop up when the user clicks the "submit" button. If "yes", the form submits. If "no", it goes back one page.
< Message edited by gcook1 -- 2/20/2004 10:28:03 >
|
|
|
|
Giomanach
Posts: 6112 Joined: 11/19/2003 From: England Status: offline
|
RE: "are you sure" pop up - 2/23/2004 7:30:06
I'va had a look about and can't find one, tell me what you are using to process the form, and I'll write one for you Dan
_____________________________
|
|
|
|
paulie
Posts: 558 Status: offline
|
RE: "are you sure" pop up - 2/23/2004 7:57:16
Another (easy) way to do that is simply have your form post to a page with buttons saying "yes" and "no". The yes button takes your values from the first form (held in variables) and posts them to the database update page. The no button is just your link backward.
|
|
|
|
gcook1
Posts: 5 Joined: 2/20/2004 Status: offline
|
RE: "are you sure" pop up - 2/23/2004 8:00:00
This is my first webpage, so bear with me... I'm using Frontpage 98. I created the webpage as a feedback form. At the bottom of the page, is the Submit button. The html command for the button is <input type="submit" value="Submit Comments"> When the button is pushed, the browser forwards to a confirmation page and the feedback data is sent via e-mail. I just want to add a step that allows a user to change his answers before submission....i.e. push the submit button, pop up box asks "are you sure?" and the user clicks "yes" or "no". "No" answer results in going back to feedback page. "Yes" answer submits the form.
|
|
|
|
Giomanach
Posts: 6112 Joined: 11/19/2003 From: England Status: offline
|
RE: "are you sure" pop up - 2/23/2004 8:04:38
For the JavaScript option, you have: <head> <script language="JavaScript" type="text/javascript"> function getInfo() { doyou = confirm("Are You Sure?"); //Your question. if (doyou == true) alert("Your Message Has Been Sent!"); //If your question is answered Yes. else if (doyou == false) history.go(-1); //After answered No, the action. (In < this < case, it sends you back 1 page!) } </script> On the form button: <input type="submit" value="Submit" onClick="getInfo()"> All you need to do is edit the JavaScript for your head tag to run the Form action, and that should be it sorted. HTH Dan
_____________________________
|
|
|
|
gcook1
Posts: 5 Joined: 2/20/2004 Status: offline
|
RE: "are you sure" pop up - 2/23/2004 9:04:53
Works great! Thank you very much!
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|