Hi Can anyone show me a solution or point to a place where i can find one to do such thing.... i have two drop list and i want to update one depending on value of the other one....using ajax.updater...some examples please.. cheers Paul --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hey Pawel, pawel kaminski a écrit :> Can anyone show me a solution or point to a place where i can find one > to do such thing.... > i have two drop list and i want to update one depending on value of the > other one....using ajax.updater...some examples please..Hmmm I didn''t try, but from the look of things, you would just have to fetch the list of <option> elements from the server side, and define your updater on the <select> element. Remember Ajax.Updater uses Element.update by default, which only replaces the *inside* of the element. So make sure NOT to send the <select> element again from the server side. Now, I''m not too sure all popular browsers will react kindly to this specific change of your page. If you can''t get it to work across all browsers, you might have to go for cross-browser scripting as a result, e.g. using Builder.node, and a text/javascript response MIME type. ''HTH -- Christophe Porteneuve aka TDD tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Paul, I have exactly what you need. :) http://colin.mollenhour.com/doublecombo/index.html Colin pawel kaminski wrote:> Hi > > Can anyone show me a solution or point to a place where i can find one > to do such thing.... > i have two drop list and i want to update one depending on value of > the other one....using ajax.updater...some examples please.. > > cheers > Paul > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hey Colin, That''s an excellent example. Does anyone have a similar example in Rails? I need to do the same thing, but thought that RJS or some special JSON Rails lib might be able to help. Cheers, Paul Shannon Web Applications Developer Codeweavers Limited Tel: 0870 443 0888 Fax: 0870 443 0889 -----Original Message----- From: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of Colin Mollenhour Sent: 24 October 2006 22:25 To: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails-spinoffs] Re: ajax.updater and dropdown list Paul, I have exactly what you need. :) http://colin.mollenhour.com/doublecombo/index.html Colin pawel kaminski wrote:> Hi > > Can anyone show me a solution or point to a place where i can find one> to do such thing.... > i have two drop list and i want to update one depending on value of > the other one....using ajax.updater...some examples please.. > > cheers > Paul > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Paul Shannon wrote:> Hey Colin, > > That''s an excellent example. Does anyone have a similar example in > Rails? I need to do the same thing, but thought that RJS or some special > JSON Rails lib might be able to help. > > Cheers, > > Paul Shannon > Web Applications Developer > > Codeweavers Limited > Tel: 0870 443 0888 > Fax: 0870 443 0889 > > > -----Original Message----- > From: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [mailto:rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of Colin > Mollenhour > Sent: 24 October 2006 22:25 > To: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Subject: [Rails-spinoffs] Re: ajax.updater and dropdown list > > > Paul, I have exactly what you need. :) > > http://colin.mollenhour.com/doublecombo/index.html > > Colin > > pawel kaminski wrote: > > Hi > > > > Can anyone show me a solution or point to a place where i can find one > > > to do such thing.... > > i have two drop list and i want to update one depending on value of > > the other one....using ajax.updater...some examples please.. > > > > cheers > > Paul > > > > >This should work... http://www.sciwerks.com/blog/2006/07/07/updating-select-controls-with-ajax/ _Kevin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---