Onclick="var conf=confirm('You are about to delete this record. Are you sure
you want to continue?');return conf;"..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 13, 2007 5:10 PM To: CF-Talk Subject: An edit and delete button I've got an edit and a delete button and want to have a confirmation dialog box if the delete button is submittted. If the edit button is clicked, don't show the confirmation alert popup. Here's what I have. <table width="719" border="0"> <cfoutput><form name="form1" method="post" action="#cgi.SCRIPT_NAME#"></cfoutput> <tr> <td width="134" align="right">Existing Stores:</td> <td width="476"> <select name="storesid" id="storesid"> <option value="">Choose Store</option> <cfoutput query="get_stores"> <option value="#id#">#left(store, 30)# - <!--- #Address# ---> #City# #state# </option> </cfoutput> </select> <input name="editgogo" type="hidden" id="editgogo" value="yes"> <input type="submit" name="edit" id="edit" value="Edit"> <input name="delete" type="submit" value="Delete" onClick="return verify()"></td> </tr> <tr> <td align="right"> </td> <td> <CFIF ISDEFINED ("URL.MESSAGE")> <CFIF URL.MESSAGE EQ "added"> <span class="GreenWind">The store has been added</span> <CFELSEIF URL.MESSAGE EQ "updated"> <span class="GreenWind">The store has been updated</span> <CFELSEIF URL.MESSAGE EQ "deleted"> <span class="GreenWind">The store has been deleted</span> </CFIF> </CFIF> </td> </tr> </form> </table> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288430 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

