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