|
| [WB23] - ASking user for confirmation |
| Iniciado por guest, 15,jun. 2018 14:07 - 5 respuestas |
| |
| | | |
|
| |
| Publicado el 15,junio 2018 - 14:07 |
Hi All
WebDev 23 Dynamic site/
How can I ask the user a confirmation Yes/No before acting on a request. I know of the YesNo() function but this cannot be used in Ajax mode and I dont want to reload the whole page if the user answers No. Is there a best practice method for handling this?
Thanks |
| |
| |
| | | |
|
| | |
| |
| Publicado el 15,junio 2018 - 14:12 |
Hi JP
I simply use a cell with two buttons, and celldisplaydialog
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 15,junio 2018 - 14:21 |
Fabrice
I will look into that, thanks.
I red the help further and there is a YesNo dialog possible in WebDev browser code. It requires, however, an internal page. I get this message:
Error:To use 'YesNo', the internal page 'WebDevYesNo' must be checked in into the project ('File .. New .. Page', 'Internal Page' tab).
How do I check this internal page into the project? Where do I find it?
Thanks |
| |
| |
| | | |
|
| | |
| |
| Publicado el 15,junio 2018 - 14:27 |
Fabrice
I see the CellDisplayDialog(CELL_Question, cellCenter, True, 50) example in the help. Question is now; how do I create a Cell?
Thanks |
| |
| |
| | | |
|
| | |
| |
| Publicado el 15,junio 2018 - 14:39 |
Fabrice
OK, I got the CellDisplay() method working. I see that one can use browser and server code and Ajax to accomplish a simple Yes/No query. Thanks for the help. |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 1.640 mensajes |
|
| Publicado el 19,junio 2018 - 12:37 |
Hi,
You can use the Browser function "Confirm", add it on the OnClick function, before the server fuction is executed
IF Confirm("Are you sure ?") = False THEN ReturnToCapture() END |
| |
| |
| | | |
|
| | | | |
| | |
|