I know that a query string for a url has size limit (although the exact value escapes me). I was wondering if there is a limit to the amount of data one can submit or return with AJAX?
$GET around 100 characters (http://www.w3schools.com/php/php_get.asp) $POST around ... No limit? (http://www.w3schools.com/php/php_post.asp)
PHP has a post_max_size configuration parameter. I suspect Apache and other web servers have a similar setting, too, but I don't know off-hand what they are.
The size of a POST is indefinitely large; however, it will usually be limited by the amount of available RAM, as as far as I'm aware you need to prepare the post data as a Javascript variable.
So it's limited by your reasonable memory usage.
Mark