2007/11/21, Ronald Evangelista <[EMAIL PROTECTED]>:
> how do i get the value of a javascipt confirm() function?
>
> a(:href=>R(DeleteUser, @user.id), :onclick => "javascript:confirm('You
> sure about this?')"){label}
Try adding the return statement, like "return confirm("sure ?")". But
it is better to use a post method for destructive actions.
--
Cheers,
zimbatm
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list