Thanks for your thoughts. I have datasets of varying sizes from a few
rows to several thousand. I do appreciate the flexibility that
returning json gives me on the client side although I've done lots of
server side manipulation in the past. Intuitively, this seems to mix
apples and oranges thou
Additionally, since you said its for your Intranet, you probably
wouldn't have much lag so I think speed either way. JSON would
probably have less data being transferred, but more overhead on the
client-side to process the data. HTML would have more data being
transferred, but less processing if a
I assume you're talking about returning data via AJAX?
Returning HTML is probably the fastest if all you're doing is just
inserting the HTML into the DOM.
However, returning JSON gives you a lot more flexibility if you
actually want to do something with the returned data, such as client-
side calc
3 matches
Mail list logo