jQuery UI Autocomplete with CI ?? |
[eluser]seanloving[/eluser]
[quote author="packetfox" date="1276114730"] Any clues what i am doing wrong? [/quote] @packetfox- I think your json function is not properly passing 'response' and 'message' to your autocomplete function. Try something like what is shown above: Code: $o['response'] = true; good luck SL
[eluser]pickupman[/eluser]
You need to change your json array. You need three values for each json entry. Code: function json(){
[eluser]lexusgs430[/eluser]
Hey guys, was wondering if you could help me get my autocomplete search working. Im getting mad errors. Ive got it working as far as it looks like its looking stuff up but then in my firebug its just returning all sorts of errors. Namely: this.menu is undefined this._trigger("open")}else this.close(...e:c};return e.extend({label:c.label|| Im thinking the problem is just in my javascript but not sure. Code: jq part = following any help much appreciated!
[eluser]pickupman[/eluser]
Got a live link by chance? Since the syntax errors are not part of your code, it could be another script, or your version of jQuery. 1.8 beta added autocomplete, but I had weird issues with it. I am using 1.8.2 now which fixed some of the errors with item selection. Sometimes if you have a js error with something else, it will break other things as well. Firebug should be telling what file the error is happening in.
[eluser]lexusgs430[/eluser]
[quote author="pickupman" date="1278119735"]Got a live link by chance? Since the syntax errors are not part of your code, it could be another script, or your version of jQuery. 1.8 beta added autocomplete, but I had weird issues with it. I am using 1.8.2 now which fixed some of the errors with item selection. Sometimes if you have a js error with something else, it will break other things as well. Firebug should be telling what file the error is happening in.[/quote] Yea its stylesearcher - Yea I was using 1.8.2, now im trying the 1.9m2 version as I uploaded it to a test folder on my server to see if autocomplete was working and it was, so ive tried couple different versions. But the error is indeed with the ui js file, hmmm.
[eluser]lexusgs430[/eluser]
oh and sometimes instead of the previously mentioned error, it returns this error instead - e("<ul></ul>").addClass("ui-autocomplete").appendTo("body", d).mousedown(function () {setTimeout(function () {clearTimeout(a.closing);}, 13);}).menu({input: e(), focus: function (c, b) {b = b.item.data("item.autocomplete");false !== a._trigger("focus", null, {item: b}) && /^key/.test(c.originalEvent.type) && a.element.val(b.value);}, select: function (c, b) {b = b.item.data("item.autocomplete");false !== a._trigger("select", c, {item: b}) && a.element.val(b.value);a.close©;c = a.previous;if (a.element[0] !== d.activeElement) {a.element.focus();a.previous = c;}a.selectedItem = b;}, blur: function () {a.menu.element.is(":visible") && a.element.val(a.term);}}) is undefined when loading the page
[eluser]lexusgs430[/eluser]
well i think I figured out source of problem, a jqui based plugin Im using for a menu. Damnit, I love that menu ![]()
[eluser]pickupman[/eluser]
I like jquery.superfish for menus. It works well, and is easy to implement. Glad you were able to narrow down your problem. 1.8.2 seems to work pretty well 99% of the time, it seems to have issues sometimes between mouse clicks, and someone arrowing down and pressing [enter].
[eluser]goldensona[/eluser]
Hi this is my jquery ui autocomplete code i cant get the result come back from database it returns error.what wrong in my code please can someone correct my and guide me to solve this error this Fatal error: Call to a member function num_rows() on a non-object in view file Code: < cript t ype="text/javascript" src="<?php echo base_url()."jquery-ui-1.8.4.custom/development-bundle/jquery-1.4.2.js"?>">[removed] this is my controller file Code: class Search extends Controller{ this is my model file Code: function citysearch($search) thanks
[eluser]pickupman[/eluser]
I may have given the wrong code through my email. Code: function citysearch($search) |
Welcome Guest, Not a member yet? Register Sign In |