On Oct 9, 2006, at 2:37 PM, [EMAIL PROTECTED] wrote:

>
> hi.
>
> How do I make an ajax call from a form like this?
>
> <form>
> <select name="select" size="8">
>   <option value="1">Blue</option>
>   <option value="2">Red</option>
>   <option value="3">Orange</option>
>   <option value="8">Yellow</option>
>   <option value="e">Black</option>
> </select>
> </form>
>
> If a user clicks an item, I want to call controller: colors/print  
> (with
> the value)

<select name="select" size="8" onchange=" new Ajax.Updater 
('divToUpdate', '/colors/print/' + this.value) " >

<div id="divToUpdate">
        <!-- results from /colors/print ends up here -->
</div>

(off the cuff)

-- John



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to