First, think about what is going on. When you submit the original page, you submit a “normal” request / response to receive the code. On the page is a jQuery AJAX bit that eliminates what is essentially a modal dialog. Desired effect: the user plays with a new page until he finds out his filters and sends back. The problem is that this “modal page” loses information when someone is paginated.
The solution to this is quite simple, theoretically. You must save the “filters” on the pop-up page so that they can be repeated, as well as pagination information. OR you must cache the result set while the user is paginated.
What would I do to solve this problem, create a static page that has "filters" on it, and work out AJAX breaks separately from returning the page to the parent page. After all the AJAX bits work correctly, I would then associate them with a pop-up program and make sure pagination is still not problematic. The final problem is to create a JavaScript routine that is sent back to the parent page and allows the parent page to send its jQuery bits back to the server.
I'm not sure about the HTML DIV part of the equation, and I think you can solve the problem without this solution. In fact, I believe that you can make a “modal pop-up window” page without calling AJAX, if you can either a) send filters for application via querystring, or b) fake the form on the second page. The query string is a simpler option, but it does provide some information. Faking the submit form is not that difficult, but can be problematic when popping up.
I just take off some ideas, but hope this is something for you.
Gregory A Beamer
source share