Hey guys,
I'd like to know what your opinions are about the best way to send data.
If you have an webpage that uses Ajax:
Is it generally preferable to get small amounts of data when needed or to send all the data in one shot and manipulate it via client-side code?
Example: a page that uses ajax to get a product list from the server. The product list is an xml document, not very large (maybe about 100 nodes or so). The page is set up where a user clicks on a category and then the products that fall under that category are displayed. Would it be better to get the entire XML doc when the page loads and then manipulate it client-side? Or should the xml be queried server-side and send back only the products that fit that category?
Thanks for your help!
I'd like to know what your opinions are about the best way to send data.
If you have an webpage that uses Ajax:
Is it generally preferable to get small amounts of data when needed or to send all the data in one shot and manipulate it via client-side code?
Example: a page that uses ajax to get a product list from the server. The product list is an xml document, not very large (maybe about 100 nodes or so). The page is set up where a user clicks on a category and then the products that fall under that category are displayed. Would it be better to get the entire XML doc when the page loads and then manipulate it client-side? Or should the xml be queried server-side and send back only the products that fit that category?
Thanks for your help!