Being the slow nitwit that I am, would you mind doing a quick example of the last part?

<input type="text" id="custnum" name="_custnum" tabindex="1" value="">
<input  type="hidden" name="custnum" value="-1">
<div id="updatecustnum" class="autocomplete"></div>
       
<script type="text/_javascript_" language="_javascript_">
              new Ajax.Autocompleter('custnum','updatecustnum','cnQuery.php', {paramName: "q",minChars: 1, afterUpdateElement: updateHidden });
</script>

Thats my autocomplete code, that works :D.  Would I put the AJAX call after the afterUpdateElement?

On 6/21/06, Deco Rior <[EMAIL PROTECTED]> wrote:
Yes,

The easiest way is to execute another function onUpdate that
populates the data, by executing another AJAX call

That is,

Do the autocomplete, and on update execute an ajax call to find the
address data and populate the appropriate form fields.

Deco
On Jun 21, 2006, at 12:54 PM, Dallas Cahker wrote:

> Hello everybody.
>
> I'm wondering if there is away with scriptaculous to update
> multiple form fields with data after finishing an autocomplete
> request.
> Heres an example.
>
> Joe BlowSchmoe fills in his name and starts to type in the customer
> number, he selects the approprate customer number from autocomplete
> list, and bam the address associated with the customer number is
> populated into the approrate fields.
>
> Thanks
> _______________________________________________
> Rails-spinoffs mailing list
> [email protected]
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to