Hi My requirement is provide auto-suggestions box popping up for user when he fills up a form on the home page. For eg. I have a text field to fill country. As the user types "au" he will be suggested "Australia" and "Austria" to chose from. this in for mation will be ftched from filesystem/DB mainained on the server side.Do I need to send parameters to my CGI, as the user enters text in the text field, to fetch data from FS/DB, for every user typing in some thing??Is there a better way around??
2. Get information from the Server upfront on Form initiation (formatted as JS Arrays for example) and do actualprocessing completely on the Client side using JS, FormAPI, etc
Hi BorisThanks for the advice. I like the second option more. But am not sure if it is advisable to fetch the info, as the form loads, for an array that may contain more than 10000 words. I have to do this for 5 fields on the same form ,so I will end up loading 5 arrays of 50k word in all.I am not doing it for a DCT. Help!Thanks
Please go through the "Adding jQuery autocomplete to TeamSite Formspublisher" on the http://www.darren-ferguson.com/2009/2/16/adding-jquery-autocomplete-to-teamsite-formspublisher.aspxHope, this may help you.
But in livesite component, i am a little confuse, for the same requirement, i don't think still need do these things i.e configure servlet web.xml in webapps under tomcat, how should i process this. servlet, ajax.js, I think something related should have been encapsulated in livesite.