I'm new to javascript and I'm trying to use http://www.pengoworks.com/workshop/jquery/autocomplete.htm but I don't understand the documentation.
I want to use http://code.google.com/p/searchable-behaviour-for-cakephp/ and the box I want the autocomplete to work its magic on is the searchable search box. I have no problem getting the searchable to work but in the docs for the autocomplete it just says copy the files to the relevant places and then use: $("selector").autocomplete(url [, options]); to make it work. eg: $("#input_box").autocomplete("autocomplete_ajax.cfm"); In the above example, Autocomplete expects an input element with the id "input_box" to exist. When a user starts typing in the input box, the autocompleter will request autocomplete_ajax.cfm with a GET parameter named q that contains the current value of the input box But I don't understand where I'm meant to put that bit of code. Do I just include the js files somehow and simply name my searchable field "input_box"? Or I'm I meant to call the js somehow in in the controller or view or something? confused -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
