This wouldn't strictly speaking be Ajax, at least not the way I would do it.
I'd trap the onchange event in the select tag: <select name="whatever" onchange="setFields();"> .... </select> Then have some javascript code to automatically select the other options. You COULD do it with Ajax (and this just occurred to me while writing this post) by putting your sub-elements in their own DIV. Then, you again use the onchange event, tie it up with an Ajax.Updater() - and let your Cake application generate the HTML for the other form elements before passing it back for display. Anyway, there's bound to be alternatives.... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
