Say, there are 10,000 items in a server database and we set MAX=100.
Assume the user entry Q="the" results in 250 entries.  The server
sends all 250 entries to the browser but Autocomplete (AC) will only
use the first MAX=100 entries.  The 100 entries are displayed in a
scroll bar.

If the user scrolls all the way down to item 100 and beyond, AC will
circle back to item 1.  Can AC be setup so that when the user scrolls
beyond item 100 it will go and fetch items 101 to 200 (or some number
> 100)?

In other words, if the user wants to see all database entries with
Q="the" and the number of entries is > MAX, how can this be done?

Dinesh


On Apr 9, 11:20 pm, dineshv <[EMAIL PROTECTED]> wrote:
> Actually, you don't need the simplejson at the server.  This works:
>
> def GET(self):
>          result = ""
>          for item in data:
>                  print item
>
> On Apr 9, 1:36 pm, dineshv <[EMAIL PROTECTED]> wrote:
>
> > Hi Ashley
>
> > I'll work through your code but sending each item one at a time from
> > the server will also work.  It is working for me right now ie.
>
> > def GET(self):
> >         result = ""
> >         for item in data:
> >                 result = simplejson.dumps(item)
> >                 print result
>
> >Dinesh
>
> > On Apr 8, 10:58 am, Ashley Pond V <[EMAIL PROTECTED]> wrote:
>
> > > On Apr 8, 2008, at 10:53 AM, dineshv wrote:
>
> > > > Okay, I sorted out the previous problem and can get data from the
> > > > Python backend to the browser via the Autocomplete plugin.  But, the
> > > > test data:
>
> > > > data = ["string 1", "string 2", "string 3", "string 4", "string 5"]
>
> > > > ... displays as one string item ie.:
>
> > > > ["string 1", "string 2", "string 3", "string 4", "string 5"]
>
> > > > ... including the square brackets!  ... instead of one string per line
> > > > ie.:
>
> > > I explained how to do this in my previous message. You have to do the
> > > overrides if you want to do anything but 1/line plain text.
>
> > > -Ashley

Reply via email to