El Wednesday 25 March 2009 14:30:20 Ryan escribió:
> I'm doing some data processing in the browser.  On the initial load, I
> have a custom javascript function that executes on the window load
> event.  It modifies all cells in the list table of a particular css-
> class.  I want to re-execute that function after a sort is performed
> by the user.
>
> Is there a way for me to add a javascript function call to the
> javascript returned by the sort AJAX call.

Override _list.rhtml in your controller (or active_scaffold_overrides for all 
controllers):
<%= render :super %>
[ javascript code ]

That code will be executed on initial load, so you can remove the window load 
event probably.

-- 
Sergio Cambra .:: entreCables S.L. ::.
Nicolás Guillén 6, locales 2 y 3. 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
-~----------~----~----~----~------~----~------~--~---

  • ex... Ryan
    • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.

Reply via email to