Here's an article about JSON "in both directions" - shows how to send JSON from jQuery to the server and back (and how to handle the server response with jQuery).
http://www.prodevtips.com/2008/08/15/jquery-json-with-php-json_encode-and-json_decode/ //Mickster On 20 Aug., 10:31, andrea varnier <[EMAIL PROTECTED]> wrote: > On 20 Ago, 09:35, Giovanni Battista Lenoci <[EMAIL PROTECTED]> wrote: > > > For example, if you do an ajax request to a page.php that do a query to > > the db, and return the data, you'll user the function json_encode (php5, > > or PEAR on php4) to write the response for javascript. > > if you cannot use that function (older version of PHP, or no modules > installed), you can simply write (echo) the json output. > like: > > echo "user = { 'firstName': 'John', /* and so on... */"; > > and jQuery will still get the data correctly