In this section:
In a previous section, you added code to your FanClub application that deletes the name of a fan from the fannames data source.
However, you did not add any code asking your end users whether they are really sure about deleting this fan name.
You could easily create a confirmation form that asked your end users, "Are you sure you want to delete this fan?" If they click Yes, you execute the code to delete the fan. If they click Cancel, you return to Update_Form with the data source unchanged.
However, this means your application must reconnect to the WebFOCUS Server to get the confirmation form, which has the potential to slow down your application.
Note: You must have completed Creating an Update Form before you can do this section.
if (confirm("Are you sure you want to delete this fan?")) IWCTrigger("DeleteFan"); else alert("Delete cancelled!");