On Sep 10, 11:46 pm, jmmg77 <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a page with a list box and an autocomplete.  The autocomplete
> results need to be filtered by both the text and the selected value in
> the list box.  Is there a way to either....
>
> a. Serialize the form each time the user performs a search to reflect
> the current listbox value?
>     OR...
> b. Pass a variable in the options of the autocomplete that reflects
> any changes made to the listbox?
>
That's what I would do.  Something like:

new Ajax.Autocomplete(
 ...
{
 parameters: ... + '&filter='+$F('filter'),
}
...

Where 'filter' is both the name of the listbox, and the name of the
parameter that your server-side code will use to filter the values.

Colin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to