Skip to content

Instantly share code, notes, and snippets.

@lanceon
Created August 23, 2013 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lanceon/6319868 to your computer and use it in GitHub Desktop.
Save lanceon/6319868 to your computer and use it in GitHub Desktop.
Ajax button with JS confirmation
SHtml.ajaxButton("Delete", () => {
JsCmds.Confirm(("Delete?"), SHtml.ajaxInvoke( ()=>{
// ... served-side action ...
JsCmds.Noop
})._2.cmd)
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment