[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