Code: Select all
function postAjax(page, threadid)
{
$.get('includes/ajax/forum_showthread.php_numpages.php', function(dt)
{
if (dt == page)
{
//$.post() here
return false;
}
return true;
});
}However, my browser isn't waiting for the ajax call to complete, and doesn't return anything. How can I get my function to wait on the ajax request to complete before returning?