title: Maximum size of ajax returned data
body: <p>Fellow coders, I have asked this question before but did not get a conclusive answer to it. The question is: how much data can i safely return from and ajax post call before i run into some limitation somewhere?  </p>
  
  <p>The scenarios are basically like this: front-end makes an ajax call to a php controller/model. the controller returns a bunch or rows from the database or returns some html representing some report which will be stored in a js string var to be displayed later.</p>
  
  <p>I see two limitations here: the size of the data returned through the ajax call and max size the js var can hold.  </p>
  
  <p>Anyone knows what the limits are?</p>
  
  <p>thanks</p>