jon-k
2009-Apr-07 09:14 UTC
How to implement checkbox-like selection with client-side state & controls?
Hi, This is my first Rails project, and I''ve just hit my first stumbling block... I''m looking for some general pointers on how to implement the following: * Allow the user to toggle the selection of words in a given string * Change the colour appropriately (ideally using CSS class) * Prevent non-adjacent words from being selected * Allow the user to submit the current selection The text needs to read as a sentence, and I want to minimise server involvement. Is there anything in Rails or its plugins to help me out here, or is pure Javascript the answer? cheers, Jon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---