haku87 Posted February 23, 2008 Share Posted February 23, 2008 I got a main page which contain a main div called main In the main page, I inserted a hyperlink to load test.php into div main However in test.php, it contain pagination. When i clicked on page 2. the whole page reload. How can i solve this problem? Quote Link to comment Share on other sites More sharing options...
php7Q Posted February 23, 2008 Share Posted February 23, 2008 I assume your doing this with AJAX or that jQuery is doing this with AJAX. I would set the pagination up where it would display some where else; instead of in your "main" div. Otherwise you will have to create another AJAX function for the pagination too load the php page back into your div; instead of reloading the page. Even if your pagination is outside your "main" div; your probably going to need to have a AJAX function for your pagination anyway (that's my guess). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.