BSN AJAX auto-suggest with CI |
[eluser]NogDog[/eluser]
Figured I'd share this here in case it helps anyone else out. I've been spending much of the last 24 hours looking for an auto-suggest JavaScript I could use for a couple form text fields. I wasn't having much luck, but finally got this one to work: http://www.brandspankingnew.net/archive/...st_v2.html I had to make one small change in the JavaScript file, getting rid of where it assigns a varname= to the URL, allowing me to use CI "friendly" URLs: Code: // create ajax request Code: [removed] Hope that saves someone else a few hours.
[eluser]bretticus[/eluser]
I had the same issue getting jQuery Autocomplete plugin 1.1 to work a few weeks back. Fortunately, the fix was easy, just changed default action to post: Code: function request(term, success, failure) {
[eluser]jcavard[/eluser]
@bretticus: would you have the link to get that plugin? a quick google search showed up a few pages with all the same name... sine you got this one working with CI, I would like to have the same as you. thanks man.
[eluser]bretticus[/eluser]
[quote author="jcavard" date="1253670637"]@bretticus: would you have the link to get that plugin? a quick google search showed up a few pages with all the same name... sine you got this one working with CI, I would like to have the same as you. thanks man.[/quote] This link seems to have the same code. The ajax call is on line 361. |
Welcome Guest, Not a member yet? Register Sign In |