View Full Version : Ajax - combine Dynamic & Pagination to highlight correct page number

03-12-2009, 01:30 AM
1) Script Title: Ajax Pagination script v1.2.2 & Dynamic Ajax Content

2) Script URL (on DD):

Ajax Pagination script v1.2.2

Dynamic Ajax Content

3) Describe problem:

I want to sync the scripts so correct page number(ajax pagination script) is highlighted when using drop down menu (dynamic ajax content script)

Both are calling the same external pages into same page/divider.

<div id="1"></div>
<div id="paginate-bottom"></div>

e.g When I choose Features from drop down menu I want page 2 to be highlighted.

Dynamic Ajax Content menu:

<a href="javascript:ajaxpage('features.html', '1')">Features</a></li>

Ajax Pagination - paginate-bottom:

<script type="text/javascript">

var bookon1={
pages: ["../membership.html", "../features.html"],
selectedpage: 0 //set page shown by default (0=1st page)

var mybookinstance=new ajaxpageclass.createBook(bookon1, "1", ["paginate-bottom"])