dianikol85 Posted June 20, 2011 Report Share Posted June 20, 2011 Hello to all! Just a quick question. Let's say i make an ajax request and it returns a table with some data from a database. My questions is which format is better practice to return this table back? As a json or html? For example take the KS forum. In Recent Topics block after the title of the post you can view with a pop up a preview of the post using ajax. If you open the firebug and view the ajax call it returns the html with tha data. Also the forum every 3-4 minutes also make a ajax call to load new posts Recent Topics block. Again open firebug and see what it returns. This call returns a json object that contains the html. What is the difference between these two ajax responses? Thanks Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.