jQuery UI Autocomplete with CI ?? |
[eluser]seanloving[/eluser]
Does anybody know how to setup the jQuery UI Autocomplete for use with Codeigniter? I see that the jQuery plugin on the wiki has a solution for the older jquery.autocomplete.js, but I wonder what is the trick to integrate jquery.ui.autocomplete.js with CI ?? Yes I got jQuery UI working with local data, as in this example But how do I make jQuery UI work with remote data, like in this other example? Thanks Sean Loving
[eluser]Mareshal[/eluser]
Same as first example. If you look inside the source of the 2nd example you find this code: Code: $("#birds").autocomplete({ Source file is search.php, so the autocomplete sends a request to search.php and it returns some data with echo. You could call this directly like: search.php?q=test
[eluser]technovicebd[/eluser]
I have also applied jquery autocomplete in my one of my project, check it out: http://sirki3.com/compareprice ..try to write something in search box. If that's gonna work for you, then I can speak up. thanks
[eluser]Mareshal[/eluser]
What should I get? is a complete mess in your code.
[eluser]technovicebd[/eluser]
Excuse me Mr Mareshal, I think you are not the owner of the post. How do you know my code is a complete mess??Are u insane? Think twice before replying any post. It will be good for everyone not to waste time.
[eluser]seanloving[/eluser]
[quote author="Mareshal" date="1272724064"] Source file is search.php, so the autocomplete sends a request to search.php and it returns some data with echo. You could call this directly like: search.php?q=test[/quote] @Mareshal- do you mean change the javascript from Code: ..
[eluser]seanloving[/eluser]
[quote author="technovicebd" date="1272727281"]I have also applied jquery autocomplete in my one of my project, check it out: http://sirki3.com/compareprice ..try to write something in search box. If that's gonna work for you, then I can speak up. thanks[/quote] @technovicebd- Although what you have gives the type of functionality I'm looking for by using jquery.autocomplete.js, my question was about how to use the newer jquery.ui.autocomplete.js Thanks Sean Loving
[eluser]Mareshal[/eluser]
[quote author="technovicebd" date="1272730559"]Excuse me Mr Mareshal, I think you are not the owner of the post. How do you know my code is a complete mess??Are u insane? Think twice before replying any post. It will be good for everyone not to waste time.[/quote] 1. Your code doesn't have proper indentation 2. Your code uses too many style="" instead of classes or IDs. 3. You include javascript in the entire code 4. your admin panel is a complete mess. Before replying to me, think twice. @seanloving: yes, change search.php to your search path,
[eluser]technovicebd[/eluser]
@Mr Mareshal: R u bill gates here to judge my coding?? stupidity should have a limit. oil your own machine Mr New Bill Gates.
[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="<?php echo base_url()."assets/js/jquery-1.4.2.min.js" ?>">[removed] 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. |
Welcome Guest, Not a member yet? Register Sign In |