Best way to show a confirmation dialog (popup)?
I'm implementing a delete feature in one of my plugins, and I'd like to ask for confirmation before deleting anything. On the backend the logic is relatively simple:
- Show a page with the list of elements.
- User clicks on Delete next to an element. When the request arrives the first time, show the confirmation page.
- When User clicks on OK on the confirmation page, send the same request with a "confirm=1" in the URL, which means delete and return to the list page.
Any suggestion in implementing this would be very welcome.