As I move deeper into learning Lift, I now want to start deleting
Mapper records in the ToDo example.

My first problem is how to get an ECMAscript or jQuery 'Confirm
delete' dialog to actually delegate an affirmative 'OK' button click
to the deletion, and conversely, to do nothing for the 'Cancel'
action.

Right now, both just fall through to the default:

toShow.flatMap(td => bind("todo", html, "delete" -> link("/todo", ()
=> td.delete_!, <img src="../images/cross.png"/>)% ("onclick" ->
"confirm();") , "check" -> ...

Thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to