I see this Form.element.serializers. But I have no idea how it works or if it is even appropriate. Does prototype provide a utility for populating/manipulating a select element? --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Serializers is a means of getting field values into a background request -- they basically do what the browser would do when you submit a form, saving you the bother of getting the field values and encoding them in the old-fashioned way. Apart from that, Protoype doesn''t add a whole lot to manipulating form elements. There are methods that make it easier to locate and determine the type of an element (especially useful when the elements might appear as different elements under different circumstances -- say, as a select for one user group and as a hidden field with a set value for another. That being said, there''s not a lot of fuss and bother to playing with a select element in plain old JavaScript. What were you hoping to do? On Oct 21, 12:57 am, Hunter Peress <hunt...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I see this Form.element.serializers. But I have no idea how it works > or if it is even appropriate. > > Does prototype provide a utility for populating/manipulating a select > element?--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
DWR had a nice little utility method for editing selects. I''ll investigate that one again. Thanks. On 10/20/07, Stan Rogers <stan.rogers-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Serializers is a means of getting field values into a background > request -- they basically do what the browser would do when you submit > a form, saving you the bother of getting the field values and encoding > them in the old-fashioned way. > > Apart from that, Protoype doesn''t add a whole lot to manipulating form > elements. There are methods that make it easier to locate and > determine the type of an element (especially useful when the elements > might appear as different elements under different circumstances -- > say, as a select for one user group and as a hidden field with a set > value for another. > > That being said, there''s not a lot of fuss and bother to playing with > a select element in plain old JavaScript. What were you hoping to do? > > On Oct 21, 12:57 am, Hunter Peress <hunt...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I see this Form.element.serializers. But I have no idea how it works > > or if it is even appropriate. > > > > Does prototype provide a utility for populating/manipulating a select > > element? > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Here is a good article about select box manipulation, http://positionabsolute.net/blog/2007/07/client-side-filter.php On Oct 21, 2:20 am, "Hunter Peress" <hunt...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> DWR had a nice little utility method for editing selects. I''ll investigate > that one again. Thanks. > > On 10/20/07, Stan Rogers <stan.rog...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Serializers is a means of getting field values into a background > > request -- they basically do what the browser would do when you submit > > a form, saving you the bother of getting the field values and encoding > > them in the old-fashioned way. > > > Apart from that, Protoype doesn''t add a whole lot to manipulating form > > elements. There are methods that make it easier to locate and > > determine the type of an element (especially useful when the elements > > might appear as different elements under different circumstances -- > > say, as a select for one user group and as a hidden field with a set > > value for another. > > > That being said, there''s not a lot of fuss and bother to playing with > > a select element in plain old JavaScript. What were you hoping to do? > > > On Oct 21, 12:57 am, Hunter Peress <hunt...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I see this Form.element.serializers. But I have no idea how it works > > > or if it is even appropriate. > > > > Does prototype provide a utility for populating/manipulating a select > > > element?--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---