Yes it does.
Thanks for the explanation.
On Aug 20, 12:34 pm, ak732 <[EMAIL PROTECTED]> wrote:
> What you're describing is more of a general AJAX thing. JSON is just
> an optional part of the whole AJAX mechanism. It's the data *format*,
> not the page update architecture. You could use XML o
What you're describing is more of a general AJAX thing. JSON is just
an optional part of the whole AJAX mechanism. It's the data *format*,
not the page update architecture. You could use XML or grow your own
data format and still be updating only portions of the page, on
demand, as opposed to d
Ah, I see. So the advantage here is that the server is just returning
data to us, rather than a whole page, and having to use .find() to
filter the page? Is it all based on speed, and bandwidth, or is there
another huge advantage that I am missing?
On Aug 20, 12:35 am, Giovanni Battista Lenoci
> How would I use jQuery to write the values onto a page? And how do
> you go the other way, taking values and serializing them into JSON to
> be sent to the server?
For serializing, on the javascript side, between objects and JSON, you
can use this public domain library: http://json.org/json2.j
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
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 tha
hubbs ha scritto:
I am trying to understand JSON, and could use a little help.
How would I use jQuery to write the values onto a page?
user = {
"firstName": "John",
"lastName": "Smith",
"address": {
"streetAddress": "21 2nd Street",
"city": "New York",
"st
7 matches
Mail list logo