Hello! I'm sort of new to the wonderful world of CakePHP and AJAX. Anyhow I have now come to a point where I'm kind of stuck and in need of some tips from more experienced users.
In my view /invoices/create I have a form containing: * A select box containting company names and one special option "New company" * A couple of input fields with company information. When an existing company is selected I want to be able to do this: * Retrieve the company information form my database and fill in the fields. * Disable the input fields so that no new data can be inserted. When "New company" option is selected (it is selected by default) I want to be able to do this: * Clear the input fields. * Enable the input fields (if disabled). I've been trying different solutions using AJAX and the onchange event but I haven't been able to come up with a solution that was good enough to actually use. I've also been browsing different forums looking for a really simple example of good auto completion using AJAX without any real success. What I want is a really really simple example of how to achieve the above or something similar. I will be very grateful for any help or tips. Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
