-
Notifications
You must be signed in to change notification settings - Fork 13
AJAX requests in html format
Ronald Chan edited this page Mar 7, 2012
·
1 revision
AJAX Pagination strives to be easy to use. For those who do not have javascript, or before AJAX functionality is added, a website will serve content in html format.
Because it already serves content in html format, it is easier for AJAX Pagination to obtain responses in html format. This means that users of the gem can use existing views, and do not have to create new views for other formats.
Using the html format also means that displaying the response is much easier. If the new content was retrieved as an xml or json object, additional logic would be required to display it in a webpage.
That is why the html format is used, and will always be the default supported format. (That does not mean other formats will not eventually be supported).