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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---