SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Threaded View

  1. #1
    SitePoint Guru afridy's Avatar
    Join Date
    Mar 2007
    1 Post(s)
    0 Thread(s)

    AJAX Pagination number click event using A tag

    Hai folks

    i have a small report generated at the bottom of a page.
    it has pagination numbers. all these ajax generated.
    now the pagination numbers have the following code.

    echo "<a href=\"#\" id='$i' class='pagenum' onclick='ajaxpost_rep_gen($i);change($i)'/>" . $i . "</a>" . "&nbsp;&nbsp;";
    notice that for hreaf i have put #.

    now my problem is, when click a pagination number, the page is scrolled to the top of the page.
    so each time when click a pagination number at the bottom, user have to scroll down to see the report's next page.

    screen shot of the report :

    Attached Images Attached Images


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts