How to Show Confirm Dialog in a WebDev Looper with AWP

image

I recently had a situation where I had a looper displaying images, each having a delete button. This delete button would actually delete the image file from the server, so I needed a way to confirm the action. In AWP you can’t use the YesNo or Confirm functions in the server code but actually is very easy performing this in the browser code.

image

The important bit of code is the RETURN when the user selects No on the dialog. This RETURN will cause the browser not to execute the server code.

This is very handy to remember as there are many times when its good practice to get user conformation.

1 comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright FUNCODER – DEVELOPER & TECHNOLOGY ENTHUSIAST 2017
Shale theme by Siteturner