Status messages with AJAX I'm making an AJAX call in drupal 7 via the standard AJAX Framework. My  problem is that when a status message is set by the AJAX callback, it is simply lost (or displayed at the next reload of the page). How can I display the status messages right after the AJAX callback has finished running, without reloading the page? Is there a module for that?
You can render the status messages and send them as anohter AJAX command. 

For example:

$commands = array();

// Add other commands

$commands[] = ajax_command_prepend('div#ajax-status-messages-wrapper', theme('status_messages'));

return array('#type' =&gt; 'ajax', '#commands' =&gt; $commands);


At least this is the way I solved this problem when I faced it.