I''m trying to pass additional variables to my autocomplete data page. I used the parameters option but this only sends a static variable (i.e. I can''t do something like parameters:"param1="+$ (''checkbox1'').checked). I thought I could fix this by calling a new Ajax.Autocompleter every time the checkbox was clicked but that just created duplicate autocompleters instead of replacing the old one. my question is this - is there any way to use another updatable parameter and/or is there a way to remove/replace an already created autocompleter? thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Jan 23, 2008 8:28 AM, RussellZ <RZ-keSuCDV+mqJCQoc03g6sIQ@public.gmane.org> wrote:> > I''m trying to pass additional variables to my autocomplete data page.Have you looked into the callback option? It is there so that you can override the parameters that are sent to the server. -justin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I added callback: function(form, value){ return value+''¶m1=''+$ (''checkbox1'').checked} and it worked like a charm. thanks! On Jan 23, 9:55 am, "Justin Perkins" <justinperk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Jan 23, 2008 8:28 AM, RussellZ <R...-keSuCDV+mqJCQoc03g6sIQ@public.gmane.org> wrote: > > > > > I''m trying to pass additional variables to my autocomplete data page. > > Have you looked into the callback option? It is there so that you can > override the parameters that are sent to the server. > > -ju stin--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---