0
Welcome Guest! Login
0 items Join Now

Shopping cart will not go back to top of page when you hit next page

  • Shopping cart will not go back to top of page when you hit next page

    Posted 16 years 6 months ago
    • I am using the wrapper function to encapsulate the products.php file for my shopping cart. The only code in the products.php page is as follows:
      <SCRIPT LANGUAGE="php">
      session_cache_limiter('none');
      session_start();
      </SCRIPT><html>
      <head>
      <LINK REL=STYLESHEET TYPE="text/css" HREF="style.css">
      </head>
      <body>

      <div align="center">
      <table border="0" cellpadding="0" width="600" cellspacing="0">
      <tr>
      <td>
      <p align="center">
      <SCRIPT LANGUAGE="php">
      include "vsadmin/db_conn_open.php";
      include "vsadmin/includes.php";
      include "vsadmin/inc/languagefile.php";
      include "vsadmin/inc/incfunctions.php";
      include "vsadmin/inc/incproducts.php";
      </SCRIPT> </td>
      </tr>
      </table>
      </div>

      </body>
      </html>

      The problem is when you are on the products page and there is more than 3 items in a category the products.php page automatically creates a navigation bar to go to previous and next page of that particular product category. When you click on next to go to the next page, it does move forward to the next page however is does not pageinate back to the top of the page. If you were at the bottom of the page and you hit next page you just stay at the bottom of the page.

      Is there a way to fix this so that it automatically refreshes back to the top of the next page?

Time to create page: 0.103 seconds