Welcome Guest, Not a member yet? Register   Sign In
[solved]post in jquery ui's autocomplete
#3

[eluser]bobbob[/eluser]
Using the example at jquery which is like this:

Code:
$( "#birds" ).autocomplete({
            source: "search.php",
            minLength: 2,
            select: function( event, ui ) {
                log( ui.item ?
                    "Selected: " + ui.item.value + " aka " + ui.item.id :
                    "Nothing selected, input was " + this.value );
            }
        });

Where do I add you code to that? I am faily sure I can do it using the $.Ajax method myself but I am just wondering if anyone has used the plugin as is with a small tweak.
I put a php file in my root and did a file_get_contents() to my controller. It works but isn't ideal.


Messages In This Thread
[solved]post in jquery ui's autocomplete - by El Forum - 09-17-2010, 09:34 PM
[solved]post in jquery ui's autocomplete - by El Forum - 09-18-2010, 02:06 AM
[solved]post in jquery ui's autocomplete - by El Forum - 09-18-2010, 11:40 AM
[solved]post in jquery ui's autocomplete - by El Forum - 09-20-2010, 08:16 PM
[solved]post in jquery ui's autocomplete - by El Forum - 10-25-2010, 05:39 AM
[solved]post in jquery ui's autocomplete - by El Forum - 10-25-2010, 06:40 AM
[solved]post in jquery ui's autocomplete - by El Forum - 10-25-2010, 07:57 AM
[solved]post in jquery ui's autocomplete - by El Forum - 10-25-2010, 05:00 PM
[solved]post in jquery ui's autocomplete - by El Forum - 10-25-2010, 05:33 PM
[solved]post in jquery ui's autocomplete - by El Forum - 11-08-2010, 03:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB