HTML request to page updated with AJAX

I want to make a HTTP request to a URL that firstly responds with a HTML (with some text inside like “please wait for reults”) and later (some seconds later) responds with the results that must be showed inside the original page (HTML).

It´s using AJAX (more concretely Direct Web Remoting - Wikipedia)

I´m getting, obviously only the first page (HTML) and the module is not waiting for the AJAX update. Any idea on how to deal with it?

Thanks in advance