I am working on a custom search module which gives the result in ajax. My return is " drupal_json(array('sample'=>$output)); ". $output contains my html with the search result along with my pagination function. My first page is loading in ajax which is fine for me. But when I click 2 page its redirecting to the ajax path along with the arguments " ?page=1&js=1" . I want this page also loads in the same page in ajax ( with out reloading ) . How can I bring pagination also in the ajax format?
Thanks for all helps...!