bozak
10-08-2003, 11:30 AM
I have looked around the forums for about an hour for a simple example of how to do this, but can't seem to find anything appropriate.
what I am trying to do is confirm an action in Cold Fusion for deleting an item
Basically, I have a picture that when the user clicks on it, reloads the CF page with some variables in the URL, which trigger a SQL statement to get executed ... something like this
....some code
<cfif action is 'delete'>
do some sql to delete it
</cfif>
....more code
<a href="./thispage.cfm?action=delete"><img src="pic.jpg"></a>
what I'd like is to have a javascript that pops up a window, lets the user know that they are about to delete the item, offers to cancel or conintue and then either closes the popup without deleting the item (cancel) or continues to process the cf page as is ....
I'll keep looking through the forum.
Thank you very much ...
:cool:
what I am trying to do is confirm an action in Cold Fusion for deleting an item
Basically, I have a picture that when the user clicks on it, reloads the CF page with some variables in the URL, which trigger a SQL statement to get executed ... something like this
....some code
<cfif action is 'delete'>
do some sql to delete it
</cfif>
....more code
<a href="./thispage.cfm?action=delete"><img src="pic.jpg"></a>
what I'd like is to have a javascript that pops up a window, lets the user know that they are about to delete the item, offers to cancel or conintue and then either closes the popup without deleting the item (cancel) or continues to process the cf page as is ....
I'll keep looking through the forum.
Thank you very much ...
:cool: