AJAX Returning HTML (change of opinion)
Be the 1st to comment!

After further thought and consideration, I retract my statement that HTML should never be sent back to an AJAX request. There was a reason I made that statement, however I can’t fill you in on it yet (hint: I have to wait for a future software release). But, even with that reason, I have no issue with using HTML in an AJAX response. I wrongly applied a wise and fully correct architectural principle, which I will elaborate on in a future post, to the AJAX situation.

Hopefully at some point in the future, I can go into more detail on why I first wrongly concluded that this should never be done. Until then, rest assured, I will use whatever format fits the circumstance (JSON, HTML, XML).

More on Ajax and returning data with or without markup
Be the 1st to comment!

Brad Neuberg has a good post that discusses further the pros and cons of returning data to your Ajax requests, with out without markup.

Page 6 of 6« First...23456