5

I have a problem, I don't find good examples of "autocomplete" with zend framework (using jQuery with zendx). I need one that works to understand how to develop it.

Someone has done it?

Thank you very much in advance

PS: I know how to do it without ZendX, I mean, doing the form myself (and using jquery as usual with a autocomplete.php file using the parameter typed in the input field), but I would like to use the zend framework properly, so I would like to know if someone has made it

joanballester
  • 207
  • 3
  • 11

3 Answers3

4

I just watched this: http://www.zendcasts.com/autocomplete-control-with-zendx_jquery/2010/07/ Really great. It works perfectly.

chris
  • 1,245
  • 1
  • 10
  • 22
3

Looks like Autocomplete functionality (which was just reintroduced w/ jQuery UI 1.8) is back in 1.10. Here is the new documentation for it.

kguest
  • 3,804
  • 3
  • 29
  • 31
Stephen Fuhry
  • 12,624
  • 6
  • 56
  • 55
1

I'm not sure it would be the job of Zend to handle a special front-end UI widget like that. I keep it simple, but adding a CSS class to the input field in the view, and providing a controller action that returns results in JSON. My front-end javascript attaches the autocomplete behavior to any input forms with the CSS class on it.

You can even add an HTML5 data- attribute (blog post) with the URL of the action to hit, so your handler can be agnostic.

aceofspades
  • 7,568
  • 1
  • 35
  • 48
  • I know this. In fact, I'm doing it without the ZendX, but I've seen something about this and I hope I can do it in this way! Thanks ;-) – joanballester Apr 23 '10 at 21:38