CodeIgniter Forums
[JQUERY][BOOTSTRAP] jquery UI autocomplete - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: [JQUERY][BOOTSTRAP] jquery UI autocomplete (/showthread.php?tid=66330)



[JQUERY][BOOTSTRAP] jquery UI autocomplete - dbrooke - 10-10-2016

CI 3.1.0
PHP  5.6.24 (cli)

Hi, I'm using jquery's autocomplete, but getting a request showing up as:

http://<domain>.com/events/getorganizers?term=theterm

That is pretty close, but in order for the param to get to the 'getorganizers' method, I'm thinking it should be:
http://<domain>.com/events/getorganizers&term=theterm

or rather better:
http://<domain>.com/events/getorganizers/theterm

thoughts?

Thanks,
Donovan


RE: [JQUERY][BOOTSTRAP] jquery UI autocomplete - ivantcholakov - 10-10-2016

Option 1 - ok;
Option 2 - wrong URL format;
Option 3 - avoid it, because generally it limits allowed characters/signs that 'theterm' can contain.


RE: [JQUERY][BOOTSTRAP] jquery UI autocomplete - dbrooke - 10-11-2016

Thanks Ivan. I've got it somewhat working, but will spare the list with my other (javascript) questions. :-)