# Help With Isue

**URL:** <https://forum.wixstudio.com/t/help-with-isue/30588>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [March 21, 2020, 1:30am UTC](https://forum.wixstudio.com/t/help-with-isue/30588 "2020-03-21T01:30:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eduardogg820](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/eduardogg820/32/780_2.png) [@eduardogg820](https://forum.wixstudio.com/u/eduardogg820)\
**Post date:** [March 21, 2020, 1:30am UTC](https://forum.wixstudio.com/t/help-with-isue/30588/1 "2020-03-21T01:30:51Z")

</div>

Here is a video: [https://www.youtube.com/watch?v=M7e1VPM7QO0](https://www.youtube.com/watch?v=M7e1VPM7QO0)  
The Code:

```javascript
import wixLocation from 'wix-location';
export function dynamicDataset_ready()
{
$w.onReady(function () {
let enabled1 = $w("#pagination1").enabled; true
let visible1 = $w("#pagination1").isVisible; true
let currentpage1 = $w("#pagination1").currentPage;
let totalpages1 = $w("#pagination1").totalPages =2;
});
$w.onReady(function () {
let enabled2 = $w("#pagination2").enabled; true
let visible2 = $w("#pagination2").isVisible; true
let currentpage2 = $w("#pagination2").currentPage;
let totalpages2 = $w("#pagination2").totalPages =2;
});
}
export function pagination1_click(event)
{
$w("#dynamicDataset").getNextDynamicPage()
.then( (next) => { "game-hints/title"
if(next){
wixLocation.to(next);
}
} );
$w("#dynamicDataset").getPreviousDynamicPage()
.then( (prev) => { "game-hints/title"
if(prev){
wixLocation.to(prev);
}
} );
}
export function pagination2_click(event)
{
$w("#dynamicDataset").getNextDynamicPage()
.then( (next) => { "game-hints/title"
if(next){
wixLocation.to(next);
}
} );
$w("#dynamicDataset").getPreviousDynamicPage()
.then( (prev) => { "game-hints/title"
if(prev){
wixLocation.to(prev);
}
} );
}

```

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [March 22, 2020, 11:38am UTC](https://forum.wixstudio.com/t/help-with-isue/30588/2 "2020-03-22T11:38:40Z")

</div>

What are we supposed to be helping you with as you mention no issue and the youtube link is private and can not be viewed,

As for your code, you only need the one onReady page function and all your lets can just be stacked underneath each other, so let enabled1, let enabled2 and so on.

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [March 22, 2020, 11:42am UTC](https://forum.wixstudio.com/t/help-with-isue/30588/3 "2020-03-22T11:42:51Z")

</div>

In fact this is a duplicate post of this previous post from a few days ago, so this thread is being closed.  
[https://www.wix.com/corvid/forum/community-discussion/pagination-in-dynamic-pages](https://www.wix.com/corvid/forum/community-discussion/pagination-in-dynamic-pages)
