# Navigate pagecontrol with JS

**URL:** <https://forums.fusetools.com/t/navigate-pagecontrol-with-js/5862>\
**Category:** How-to Discussions\
**Created:** [March 31, 2017, 6:29am UTC](https://forums.fusetools.com/t/navigate-pagecontrol-with-js/5862 "2017-03-31T06:29:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TouPilsner](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@TouPilsner](https://forums.fusetools.com/u/TouPilsner)\
**Post date:** [March 31, 2017, 6:29am UTC](https://forums.fusetools.com/t/navigate-pagecontrol-with-js/5862/1 "2017-03-31T06:29:52Z")

</div>

I have a pagecontrol which I do not want to navigate with swipe gestures. Each page is dynamically added, so it seems that I cannot bind to ux:Name. Ay tips on navigate back and forth between cards using JS? Example taken from “swipe gesture reveale”

```auto
        <Panel>
			<PageControl InactiveState="Unchanged" Transition="None">
				<NavigationMotion GotoEasing="QuadraticOut" GotoDuration="0.3" />
				<Each Items="{pagesView}">
					<Card />
				</Each>
			</PageControl>
		</Panel>

```

---

<div class="post-metadata">

**Author:** ![TouPilsner](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@TouPilsner](https://forums.fusetools.com/u/TouPilsner)\
**Post date:** [March 31, 2017, 8:19am UTC](https://forums.fusetools.com/t/navigate-pagecontrol-with-js/5862/2 "2017-03-31T08:19:46Z")

</div>

Solution is to bind against pagecontrol’s ActiveIndex property
