Here is an example for a remote JSON autocomplete:
http://dev.jquery.com/view/trunk/plugins/autocomplete/demo/json.html

The result list is limited to an unordered list, you need to embed any
further formatting into it.

Jörn

On Tue, Jun 17, 2008 at 4:26 PM, Adam <[EMAIL PROTECTED]> wrote:
>
> Hi Jörn (and whomever else)
>
> I'm trying to do something a little more complex with the Autocomplete
> plugin. I want to return a Spotlight-like result, so I have a multi-
> dimensional JSON array being returned, something like this:
>
> {"names":[ list of names here ], "emails":[ list of emails here ]}
>
> Based on this, I want to create a structure using a definition list,
> like:
>
> <dl>
> <dt>Names</dt>
> <dd>Name</dd>
> <dd>Name</dd>
> etc.
>
> <dt>Emails</dt>
> <dd>email</dd>
> <dd>email</dd>
> etc.
>
> </dl>
>
> I've looked through the documentation and the comments but can't seem
> to get it to happen. Could you provide some insight as to going about
> parsing the JSON and customizing the output HTML for this?
>
> Thanks in advance!
>
>
>

Reply via email to