use ajax request to retrieve results.