dineshv schrieb:
Hi Shawn.

Thank-you very much for the clear explanation.  I mean "remote" as in
"the same domain".  Let's see if I understand your explanation:

A large number (>10,000) of string items are held in a database (or
array) at the server.  We want to make the string items available to
the autocomplete plugin at the browser.  However, we only want a
(relevant and small) subset of the string items sent to the browser at
a time dependent on what the user enters into the input box.

Text (well letters, really) entered into the input box are sent to the
server as the autocomplete 'q' parameter.  The server queries the
database (or array) to find MAX items around the user-entered text and
sends these items to the browser (as a JSON string).  The MAX
parameter can be set within autocomplete or within the query to the
database (or array).

Is this the gist of it?  Btw, my backend is written in Python.
Usually your server-side can ignore the max parameter. You just send the amount you deem appropiate, and to get better results, the user has to enter something more specific.

Jörn

Reply via email to