Hi, Are there any plans for, or has anyone worked on, something that will allow me to use autocompleter components in a cascading manner, whereby a selection in one will affect the URL params sent to another? The simplest solution, as I see it anyway, would be to add a callback that happens just before the request is sent, that would allow changes to be made, but this would require me to modify Scriptaculous code, and I''d rather avoid that. Does anyone have any other suggestions? Greg --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
In the hope it helps someone else: It turns out there''s an option for this very thing, it just wasn''t in the wiki-docs (I''m about to go and add it). You just need to attach a ''callback'' to the options hash, that returns the querystring you want sent to the server, allowing anything else to be attached to it. Slight gotcha, what you return is used instead of the defaults, rather than instead of. A quick example- I wanted selecting a person''s name to be further restricted if a company had already been chosen: var options = { callback: function(field,querystring) { if($F(''company_id'')) { typed+=''&company_id=''+$F(''company_id''); } return querystring; } }; Greg --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---