Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Senthamaraikannan on Jun 23, 2008 02:40
open dhtmlx forum
AutoCompleteion by using combo Box

Hi,
Im using Dhtmlx combo box for autocompletion in my application.Right now im fetching all the data from the database .While DISPLAYING component itself im loading all the data into that component.Whenever tha page get refreshed its again going to the database and fetching all the data from the database.Is it correct way to do it? or some other war to do it.
And also tell me how to load the data to that component without page getting refresh.By using ajax how to that?


Our technologies are:

Front -end :JSF.
Back-end :postgresSQL
Middle-ware:EJB3.

Thanks advance....
Answer posted by Support on Jun 23, 2008 06:38
>>or some other war to do it.
If page refreshed - data will be fetched to client side again. This normal approach.
If you are using server side filtering - in such case only part of data will be loaded initially.
    http://dhtmlx.com/docs/products/dhtmlxCombo/samples/filtering/combo_big_db.html?un=1214229196000


>>And also tell me how to load the data to that component without page getting refresh.By using ajax how to that?
You can clear existing sets of options by
    combo.clearAll();
and load new set from any server side source as
    combo.loadXML(url);