Hello group, I've been trying to get the ajax helper autocomplete example in the tempdocs for 1.2.x.x working but for some reason it just doesn't seem to be functioning properly for me.
I'm using firebug in firefox, and when I start typing in the autocomplete field firebug shows me the following: POST http://localhost/myapp/orders/auto_complete/ 404 (123ms) prototype.js (line 1222) I would assume this to mean that prototype is throwing a "404" error for the autocomplete field, however if I point firefox to http://localhost/myapp/orders/auto_complete/ it shows the list as it should. My orders_controller.php file: function auto_complete() { $this->set('companies', $this->Order->findAll("WHERE `company` LIKE '%seedifferently%'")); // {$this->data['Order']['company']} $this->layout = 'ajax'; } My order view file snippet: echo $ajax->autoComplete('company', '/orders/auto_complete/', array('minChars' => 2, 'frequency' => 0.8)) My auto complete view file: <ul> <?php foreach($companies as $company): ?> <li> <?php echo $carrier['Order']['company']; ?> </li> <?php endforeach; ?> </ul> What would the problem be here? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
