Hi, I just started using the Ajax.Autocompleter api, and it works amazing. But I was wondering if I could add more parameters to the ajay request (as of now it just sends the value that the user has typed) ? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Check out the :with parameter. That might be what you''re looking for. On 12/5/06, raVen <ashirazi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi, > > I just started using the Ajax.Autocompleter api, and it works amazing. > But I was wondering if I could add more parameters to the ajay request > (as of now it just sends the value that the user has typed) ? > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Andrew Kaspick wrote:> Check out the :with parameter. That might be what you''re looking for.Excuse my ignorance, but could you please point me to the exact location where I can find more info about :with param. I looked at the documentaton, and I found that I could use either a) new Ajax.Autocompleter(''ac1'',''ac1update'',''/cgi-bin/my.cgi'', {paramName:"typedText", minChars:1} ); which gives me access to the ''typedText'' in my.cgi. Or, b) new Ajax.Autocompleter(''ac1'',''ac1update'',''/cgi-bin/my.cgi'', {parameters:''action=getMatchingText''} ); which gives me access to action ''getMatchingText''...but not the ''typedText''. I am looking to have access to both ''typedText'' and ''action'' parameters in my.cgi. 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 -~----------~----~----~----~------~----~------~--~---
I was playing around with this, and just discovered that I could do new Ajax.Autocompleter(''country676244'',''ac1update'',''/cgi-bin/my.cgi'', {paramName:"typedText", minChars:1, parameters:''action=getMatchingText&b=c''} ); This gives me access to both ''typedText'' and ''action'' in my.cgi. Great! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
nkapoor wrote:> Andrew Kaspick wrote: >> Check out the :with parameter. That might be what you''re looking for. > > Excuse my ignorance, but could you please point me to the exact > location where I can find more info about :with param. I looked at the > documentaton, and I found that I could use either'':with'' is rails wrapper, I assume to the ''parameters'' option.> a) new Ajax.Autocompleter(''ac1'',''ac1update'',''/cgi-bin/my.cgi'', > {paramName:"typedText", minChars:1} ); > > which gives me access to the ''typedText'' in my.cgi. > > Or, > > b) new Ajax.Autocompleter(''ac1'',''ac1update'',''/cgi-bin/my.cgi'', > {parameters:''action=getMatchingText''} ); > > which gives me access to action ''getMatchingText''...but not the > ''typedText''. > > I am looking to have access to both ''typedText'' and ''action'' parameters > in my.cgi.Did you try combining those 2 options? new Ajax.Autocompleter( ''ac1'',''ac1update'',''/cgi-bin/my.cgi'', { paramName:"typedText", parameters:''action=getMatchingText''}, minChars:1 } ); -- Michael Peters Developer Plus Three, LP --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---