logo

New Response

« Return to the main article

You are replying to:

  1. Nice approach...one nice addition to this would be to add some sort of delete confirmation (Are you sure you want to delete this document?) before the delete takes place. I have done this using javascript placed in the HEAD CONTENT section which uses the window.confirm()

    Here's my code as an example: <Script> function deleteDoc(form) { if(confirm(\"Are you sure you want to DELETE? click \'OK\' to delete or \'Cancel\' to abort\")) { location.assign(\""+Path_Translated + @Text(@DocumentUniqueID)+"?DeleteDocument&"+form+"\") } }</SCRIPT>

    Just an idea...then not only do you decide whether and how to redirect the user, you give them the familiar windows style confirmation as well

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: