Problems with Pagination inside a pop up

Problems with Pagination inside a pop up

Hi All,

I have one jsp with some data inside a table. When I click on data displayed in one column it opens a popup using jqModal below is the code to invoke the popup(which is another jsp):

This is the function which invokes the jsp and displays in the jqModal

 $('body').append($('.jqmWindow'));
    $('#dialog').jqm({
      ajax : '@href',
      model : true,
      trigger : 'a.blue'
    });

This is the div which I am using at the end of the main page.

<div class="jqmWindow" id="dialog"></div>

This opens the popup and works fine.

 I need to implement pagination inside the popup using spring pagination. and I was able to implement the pagination but. the next page is getting displayed in a browser as a normal jsp. it is not coming in the pop up.


I will appreciate any help or suggestion. I am prety new to JQuery.

Thanks
Ravi