tags:

views:

62

answers:

1

I can receive JSON.

Is this a bad practice? And if so, who said that? W3C?

No personal opinion, please

Referencies links will be good.

+1  A: 

The idea being that HTML is bigger than json, so where possible, update the existing page using json content.

Rich Bradshaw
But then you have to manually generate the HTML nodes based on that javascript. Which can be nice, but it means you have to write a lot more javascript. It's far simpler to say "get html and stuff in here". I think this topic may be too hard to generalize on since different needs call for different tactics.
Squeegy
Yes, I agree - depends on the use case I guess. If you were replacing data in a table hundreds of times using AJAX then Json would be quicker for isntance.
Rich Bradshaw