Smutty
MVC Framework
Live Search Demo
The text field below implements basic "live search" type functionality. The
field is created with the {field}
function, but this time we use the update and url
attributes to enable ajax callbacks. The feedback attribute is
also set to specify the element to show feedback of how the call is going.
Search: (hint: try ajax!)
Results: (type something first!)
If you type some text into the field above then after a pause (it checks you've stopped typing for a moment) it'll submit the query to the server and then the results will be displayed.