How to Show Confirm Dialog in a WebDev Looper with AWP

by | Mar 23, 2011 | WebDev | 1 comment

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