My question is more geared towards approach than it is programming or errors.
I have a query that runs and gathers a set of data. I then want to use that query's return values to build a table on a page listing all the values. Along with that I need to have some actions with each value for example:
my_val (edit) (delete)
my_cal (edit) (delete)
Where edit and delete are buttons. So the edit button I have working with onClick javascript, where i'm redirected to another page, but the delete button i need that to do three things:
- prompt user, okay to delete? msg (using javascript for that (return confirmation...).
- execute query to delete
- refresh page (self)
Is there a best approach model for this? Is it easier to call two inline javascript commands? Use javascript functions? Maybe a ColdFusion function?
any pointers would be helpful! thanks.