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.

Spread the love

1 thought on “How to Show Confirm Dialog in a WebDev Looper with AWP”

Leave a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top