language construct you've got and let the library encode for you.
andy
-----Original Message-----
From: jquery-en@googlegroups.com [mailto:jquery-en@googlegroups.com] On
Behalf Of me-and-jQuery
Sent: Monday, December 01, 2008 11:04 AM
To: jQuery (English)
Subject: [jQuery] Ajax to return more values
Ho-ho-ho.
I wonder what is the best practice if I want to get 2 or three values back
to function with ajax. The last value would be lots of html code and first
two kind of state values (number or short string). I don't like jSON a lot,
since you need to return one-line response and you must be careful with a
shape (" and }). Second option is having a regex to fetch first two values
and all remaining is a third value.
And what do you think is the best solution here?
Happy December,
me-and-jQuery
No comments:
Post a Comment