I don't know anything about Rails, but I do have a Javascript class that'll do what you want. Maybe someone else here can make a RJS template for it for you? I don't know how that stuff works... Anyway, you can get it here:
http://colin.mollenhour.com/include/prototype/checkbox.js new Ajax.Checkbox('elementid', 'page.php', {params:'action=checkbox'}); It works very similar to Ajax.InPlaceEditor except it has a checkbox. Sorry, no live demo. Colin lizardwalker wrote: > Is there a simple set of rails commands that can create a checkbox > that sends an ajax submit on each state change of the checkbox? I do > not yet know enough about Javascript to write this out without rails' > help. > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
