Note that there are some explanatory texts on larger screens.

plurals
  1. POautocomplete search form cakephp
    primarykey
    data
    text
    <p>Hey there, I'm a total newbie and I'm looking for a way to have a search box with autocomplete just like google does.</p> <p>I've searched and the best prospect that I've found seems to be <a href="http://www.pengoworks.com/workshop/jquery/autocomplete.htm" rel="nofollow">http://www.pengoworks.com/workshop/jquery/autocomplete.htm</a> which I found on a forum. The guy who suggested it says he uses it with <a href="http://code.google.com/p/searchable-behaviour-for-cakephp/" rel="nofollow">http://code.google.com/p/searchable-behaviour-for-cakephp/</a> which is dead on because I've managed to install searchable on my last attempt at figuring out cakephp.</p> <p>The thing is, I've not used much javascript before and I'm a bit confused as to what exactly I'm meant to be doing. The documentation with the autocomplete codes doesn't go into any detail that I can understand.</p> <p>If we assume that I manage to get searchable behaviour installed correctly, could any kind person explain to me how I would go about making the autocomplete work?</p> <p>It says to just use: </p> <pre><code>$("selector").autocomplete(url [, options]); </code></pre> <p>eg: </p> <pre><code>$("#input_box").autocomplete("autocomplete_ajax.cfm"); </code></pre> <p>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 <code>autocomplete_ajax.cfm</code> with a GET parameter named <code>q</code></p> <p>thats the bit I don't get. Where am I meant to put that? And once I've put it somewhere then do I just need to name one of my inputs "<code>input_box</code>"?</p> <p>thanks in advance. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload