Search code examples
ajaxcakephpcakephp-1.2

How to Update Two div at same time with Two different response by using ajax


How to Update Two div at same time with Two different response by using ajax;


Solution

  • Ajax requests are asynchronous. so you can save first response, send second request in first request callback and in second callback function update divs with first and second responses. this way you can be sure that both responses arrived and ready to be processed.