Monday, September 6, 2010

jQuery is too fast (faster than mysql)

Programmer Question

I am developing a cakephp application that uses jquery and post methods in the background.



When cakephp sends a post request in the background, a div has to refresh (or regenerate), and it has to show new content.



Post method calls other php file that does a MySQL query. The div also call mysql, and select proper data from database.



Problem is that div is refreshed (or regenerated) before the first mysql query. So it works ok, but how can I tell that div to "wait" a bit, until the mysql query is executed?



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails