Welcome Guest, Not a member yet? Register   Sign In
jQuery UI Autocomplete with CI ??
#10

[eluser]seanloving[/eluser]
[quote author="Mareshal" date="1272748413"]
@seanloving: yes, change search.php to your search path,[/quote]

when I use source: availableTags everything works fine. But when I use source: "http://localhost/sample.com/search" it does not work.

Code:
<s-cript type="text/javascript" src="&lt;?php echo base_url()."assets/js/jquery-1.4.2.min.js" ?&gt;">[removed]
    <s-cript type="text/javascript" src="&lt;?php echo base_url()."assets/js/jquery.ui.core.js" ?&gt;">[removed]
    <s-cript type="text/javascript" src="&lt;?php echo base_url()."assets/js/jquery.ui.widget.js" ?&gt;">[removed]
    <s-cript type="text/javascript" src="&lt;?php echo base_url()."assets/js/jquery.ui.position.js" ?&gt;">[removed]
    <s-cript type="text/javascript" src="&lt;?php echo base_url()."assets/js/jquery.ui.datepicker.js" ?&gt;">[removed]
    <s-cript type="text/javascript" src="&lt;?php echo base_url()."assets/js/jquery.ui.autocomplete.js" ?&gt;">[removed]
    var availableTags = ["PT-042-GP", "PT-042-TP", "PT-042-JP", "PT-042-RP", "PT-042-WP", "PT-042L-GP", "PT-042L-TP"];
    $(".product_picker").autocomplete({
        //source: availableTags,
        source: "http://localhost/sample.com/search",
        minLength: 1,
        select: function(event, ui) {
            log(ui.item ? ("Selected: " + ui.item.value + " aka " + ui.item.id) : "Nothing selected, input was " + this.value);
        }
    });

The file search.php is located in my application/controllers/ and I am thinking this is in fact correct.

Not sure if I need the jQuery AJAX helper and hook for CI in order to make this work with "remote data".

My ultimate goal is to autocomplete from MySQL database.


Messages In This Thread
jQuery UI Autocomplete with CI ?? - by El Forum - 04-30-2010, 07:22 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 05-01-2010, 03:27 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 05-01-2010, 04:21 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 05-01-2010, 04:25 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 05-01-2010, 05:15 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 05-01-2010, 05:34 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 05-01-2010, 05:41 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 05-01-2010, 10:13 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 05-01-2010, 10:20 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 05-01-2010, 11:36 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 05-01-2010, 08:46 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 05-02-2010, 09:19 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 05-02-2010, 09:41 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 05-02-2010, 09:02 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 05-02-2010, 09:08 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 06-08-2010, 12:39 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 06-08-2010, 01:01 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 06-08-2010, 06:29 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 06-08-2010, 06:56 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 06-09-2010, 09:18 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 06-09-2010, 10:01 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 06-09-2010, 10:53 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 07-02-2010, 01:45 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 07-02-2010, 02:15 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 07-02-2010, 03:23 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 07-02-2010, 03:25 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 07-02-2010, 03:33 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 07-02-2010, 09:08 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 09-08-2010, 11:40 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 09-09-2010, 06:39 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 09-09-2010, 06:50 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 09-09-2010, 11:25 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 09-10-2010, 06:52 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 10-03-2010, 11:43 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 10-03-2010, 12:20 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 10-03-2010, 03:07 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 10-03-2010, 03:14 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 10-08-2010, 12:20 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 10-08-2010, 02:02 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 10-08-2010, 02:27 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 10-08-2010, 03:29 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 10-08-2010, 06:53 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 10-20-2010, 01:22 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 10-20-2010, 01:53 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 10-20-2010, 02:01 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 07-15-2011, 10:46 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 07-15-2011, 10:59 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 07-15-2011, 11:57 AM
jQuery UI Autocomplete with CI ?? - by El Forum - 07-27-2011, 12:59 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 07-27-2011, 01:25 PM
jQuery UI Autocomplete with CI ?? - by El Forum - 07-27-2011, 02:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB