Re: Need your suggestions and ideas on XMLHttpRequest aggregation.
Posted By:
Anonymous
Posted On:
Sunday, March 4, 2007 10:09 AM
Hi Erica,
You made the answer too along with the question.
The main use of AJAX is to make the page more responsive.
Now, GET or POST is only a mechanism with which we send the data.
A GET request can only handle a URL up to 1024 characters.
If your request URL might go more than that length, then you switch to using POST.
People generally use GET requests with AJAX because it is faster than POST in
the sense of encrypting and decrypting data in the body of the request.
If you want to do lazy processing, like get the data at once when the request URL
exceeds 1024 characters in length, then you can use a POST request and gather data till that point.
To me using GET and fetching data then and there is a wise and clean solution.