On Domingo, 5 de Septiembre de 2010 03:30:14 [email protected] escribió:
> Hi
>
> how to implement the dhtml_confirm ?
> I would like to use the Modalbox library..
>
> I can't find any example...
>
>
> thanks for your help
>
> Vincent
I have never used it. Reading dhtml_confirm.rb and view_helpers.rb I think you
must to subclass DHTMLConfirm and put Modalbox code in onclick_handler method.
You will have to set an instance of that subclass to your action link. For
example:
class ModalboxConfirm < DHTMLConfirm
def onclick_handler(controller, link_id)
'code to show modalbox'
end
end
active_scaffold do |config|
config.action_links.add ..., :dhtml_confirm => ModalboxConfirm.new
--
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en.