News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Raphael Stolt's Blog:
Handling JSON responses on the client side
June 06, 2007 @ 07:41:00

In a previous post, Raphael Stolt showed how to create a simple application that handled the transmission of a JSON-formatted message from the Zend Framework's Zend_Service component (translating XML to JSON in the process). In this new post today he shows the other half of the equation - how to handle the JSON messages on the receiving end.

In this post I'd like to show how to unpack the JSON response and render a visual representation by utilizing the Template class of the Prototype JavaScript library.

The code is all Javascript but it's a good example of how to break down the request and output a simple list format of the contents to the page (record "shelf" and record information).

0 comments voice your opinion now!
json response clientside template prototype javascript json response clientside template prototype javascript


blog comments powered by Disqus

Similar Posts

Stoyan Stefanov's Blog: phpBB front-end optimization - 1 hour workshop

DevShed: Working with Template Classes in PHP 5

PHPMaster.com: Create a Poll with PHPixie

Job Posting: SQLFusion Seeks Senior PHP/Javascript Software Dev (Redondo Beach, CA/Telecommute)

John Coggeshall's Blog: Alan has smoked too much PHP


Community Events





Don't see your event here?
Let us know!


framework podcast opinion application symfony series package tool version update introduction interview security community composer release laravel voicesoftheelephpant language library

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework