Dear group, I have fixed this by removing the "Security" component from my components list in the controller. Evidently the security component kills the ajax requests. Is this a bug or a feature?
Thanks, Seth On Feb 6, 4:23 pm, seedifferently <[EMAIL PROTECTED]> wrote: > Hello group, > > I've been trying to get the ajax helperautocompleteexample 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 theautocompletefield > firebug shows me the following: > POSThttp://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 theautocompletefield, however if I point firefox > tohttp://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 cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---