feeleash
08-25-2012, 10:27 AM
http://www.dynamicdrive.com/dynamicindex17/ajaxpaginate/index.htm
Hello fellow programmers.
I wanted to ask how is it possible to load an external html page which has the ajax pagination system but make it load on page 2 instead of 0...
I saw this code which explains how to load another page when you are already in ajax pagination, but what about external pages?
Selecting a page dynamically
You can explicitly select a page within the paginated content to jump to anywhere on your page or inside your scripts by calling the method:
bookvarinstance.selectpage(page_number)
Where "page_number" is an integer designating the desired page number to load (0=1st page, 1=2nd page etc). The following link selects the 3rd page of the paginated content instance with variable reference "comments":
<a href="javascript:comments.selectpage(2)">Jump to Page 3</a>
Hello fellow programmers.
I wanted to ask how is it possible to load an external html page which has the ajax pagination system but make it load on page 2 instead of 0...
I saw this code which explains how to load another page when you are already in ajax pagination, but what about external pages?
Selecting a page dynamically
You can explicitly select a page within the paginated content to jump to anywhere on your page or inside your scripts by calling the method:
bookvarinstance.selectpage(page_number)
Where "page_number" is an integer designating the desired page number to load (0=1st page, 1=2nd page etc). The following link selects the 3rd page of the paginated content instance with variable reference "comments":
<a href="javascript:comments.selectpage(2)">Jump to Page 3</a>