Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JavaScript and AJAX (http://www.go4expert.com/articles/javascript-tutorials/)
-   -   Auto Suggest with Javascript (http://www.go4expert.com/articles/auto-suggest-javascript-t357/)

andrejc 21Jan2009 19:35

Re: Auto Suggest with Javascript
 
Thanks a lot. When i googled up for autocompletion I first encountered a bunch of sites saying its imposible or sugesting visualy improper solutions.

However, I use prototype framework (1.6) to send the data to javascript and the code did not work. All your arrays get filled with functions from prototype.js as objects. I didn't look up where's the object collision, I just replaced all the for(var i in array) with for(i=0; i<array.lenght; i++) in your script and its working fine so far.

Thanks again!

pradeep 21Jan2009 20:40

Re: Auto Suggest with Javascript
 
Yeah I encountered this problem a few months back, and the solution was same like yours! :)

anavarro 28Mar2009 04:44

Re: Auto Suggest with Javascript
 
Hello,
I've recently used this code and it works wonderful! However, when I opened it up in MS IE 6.0 it beahves differently. The TEXTBOX seems to be off centered and the autocomplete=off seems to have no effect.

Is there a trick in order to use it in MS IE?

Thanks

MrSlate 3Jun2009 23:17

Re: Auto Suggest with Javascript
 
Perfect! Thanks!!

MrSlate

neenajaiswal 23Jun2009 16:56

Re: Auto Suggest with Javascript
 
I have newly joined this forum. Thanks very much , Pradeep for this wonderful solution. How can I create this auto-suggest feature with data to be dynamically built from Oracle table?

neenajaiswal 24Jun2009 15:55

Re: Auto Suggest with Javascript
 
Thanks for the solution. I need the list to be built from data from Oracle tables. How do I do this?

Neena Jaiswal

David Michael 6Jul2009 19:23

Re: Auto Suggest with Javascript
 
I also have same problem, I want to figure out how to create data in an oracle tables.

Mysticfalcon 27Jul2009 12:20

Re: Auto Suggest with Javascript
 
Hello, thanks for your perfect job.

But there is a problem, it doesn't work on special characters like ", , , , , ". How can we solve this problem ?

daya_lv 26Oct2009 17:15

Re: Auto Suggest with Javascript
 
Hi Pradeep,
This is very helpful to me. Works very well. but my data set has "&" in it. e.g. - Abc & Abc. In such case the drop down shows text as "Abc & Abc" but the text box shows it as "Abc &amp; Abc". Can you help with this one please?

venami 13Dec2009 16:26

Re: Auto Suggest with Javascript
 
This is really superb :)


All times are GMT +5.5. The time now is 23:33.