Welcome Guest, Not a member yet? Register   Sign In
How Confirm before delete?
#6

[eluser]xwero[/eluser]
A way to do it without javascript requires reloading the page.

Most of the times you need an identifier for the delete url so if you don't add the identifier your create a buffer. On reload you add the identifier to the url and then the deletion will happen.

An alternative is to add an ask url and if that is clicked the delete url will show. The advantage of this method is that you can add the identifier which makes it possible to single out a delete link. The first method adds all the identifiers to the delete urls.

From the javascript side the first method is better if the key is shown somewhere else on the page, for instance as a edit url indentifier. The second method requires (semi-)hardcodeing the delete url in javascript.


Messages In This Thread
How Confirm before delete? - by El Forum - 07-09-2008, 11:51 AM
How Confirm before delete? - by El Forum - 07-09-2008, 12:03 PM
How Confirm before delete? - by El Forum - 07-09-2008, 12:21 PM
How Confirm before delete? - by El Forum - 07-09-2008, 05:08 PM
How Confirm before delete? - by El Forum - 07-09-2008, 09:47 PM
How Confirm before delete? - by El Forum - 07-09-2008, 11:05 PM
How Confirm before delete? - by El Forum - 07-10-2008, 02:02 AM
How Confirm before delete? - by El Forum - 05-06-2009, 08:26 PM
How Confirm before delete? - by El Forum - 05-06-2009, 09:44 PM
How Confirm before delete? - by El Forum - 05-07-2009, 07:29 AM
How Confirm before delete? - by El Forum - 05-07-2009, 07:30 AM
How Confirm before delete? - by El Forum - 05-07-2009, 07:46 AM
How Confirm before delete? - by El Forum - 09-23-2009, 01:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB