My autoplugin does this with option minChars=3
http://www.dyve.net/jquery?autocomplete
On 8/24/06, digital spaghetti <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> Would anyone be able to help me out? I'm trying to code a livesearch
> widget for Wordpress using G. van den Hoven's Autocomplete plugin.
>
> I've tried to look through the source to try find what I need, but can't.
>
> I have my widget that I initialises the plugin, and an input for where
> I accept the user typing in, but what I cannot work out is how to take
> each keypress and pass that into a PHP file to do the search. I'd
> prefer to wait until at least the first 3 characters have been put in
> before firing this off, but this is not essential.
>
> code:
>
> <script type="text/javascript">
> //
> // Page script
> $(document).ready(function() {
> $('input.#livesearch').autoComplete($('#center'),
> '<?php
> bloginfo('template_url'); ?>/search.php');
> });
> </script>
>
> <div id="search">
> <div>
> <input type="text" name="livesearch" id="livesearch"
> value="Live Search" />
> </div>
> </div>
>
> Can anyone suggest what I do?
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/