I saw a message on twitter about something called JSONPX, and did some research to try to find out what it was. According to Wait till I come this is a new way to provide XML with a callback. Essentially this is a format to provide markup Yahoo's API with a callback and metadata describing the query.
Pretty slick, if you ask me. Normally I'd take the JSONP results and have a JavaScript templating engine like John Resig's Micro-Templating. If you use Yahoo's sanitize function, you can even make the HTML safe to insert via innerHTML, even though innerHTML is evil.
As it gets easier to do HTML layout without markup hacks, I see this approach becoming more common. Get the markup you want, with the metadata you need.
Leave a Comment...