javascript - How to generate a confirmation popup in Coldfusion 8 -


i'm working on cfc in coldfusion 8 , need setup confirmation popup before person deletes record. here base piece of code i'm working with:

<!---initiated when user clicks "delete association"---> <!---user should prompted popup confirm intent delete---> <!--if user confirms delete, click event in popup triggers function below---> <cffunction name="deleteemployeeassignment" access="remote"         description="deletes selected employee selected report assignment"         returntype="void">     <cfquery name="qrydeleteemployeeassignment" datasource="corp_dev" dbname="corp_dev_db">         delete [corp_services_dev].[dbo].[assignedreports]         employeeid ='11283' , assignedreport = '1'     </cfquery>     <!---user given success message on deletion---> </cffunction> 

because before cf9 can't use cfwindow tag. suggestions appreciated.

you try return confirm('are sure want delete this?') onclick event on whatever calling method. showed method calling, on whatever calling method. so, if "delete association" button or link, should able use onclick event there. not fancy, should job done. many other ways skin cat using javascript library of choice.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -