Ronald Evangelista
2007-Nov-21 08:54 UTC
where do i get the return value of a javascipt method?
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} any tips? thanks! -- |^^^^^^^^^^^^\ .|| |NALDEVNGELSTA.___||''""|""\___, | ________________ l | |__|__|_|) (@!)!(@)"""""**|(@) (@)****|(@) (?`''?.?(?`''?.?(?`''?.? . Have a Terrific Day! .?''??)?.?''??)?.?''??)?.?
Jonas Pfenniger
2007-Nov-21 09:19 UTC
where do i get the return value of a javascipt method?
2007/11/21, Ronald Evangelista <ironald at gmail.com>:> 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