I have done a small Ajax coding before for an auto-completion. I am currently stuck on a task of data display. The return data can be in either XML, HMTL, or JSON formats. I would like it be displayed on a Javascript popup window. Javascript is not my strong field.

Can someone point me some examples for such application?

Thanks very much in advance.