Page 1 of 1

Setting the current page using javascript.

Posted: Thu Mar 16, 2023 5:01 pm
by rjorge99
Hi,

I'm using some custom controls to next, previous, first and last page, I dont know if what I'm doing is correct :

Code: Select all

viewer.jsObject.controls.buttons.FirstPage.action();
But that works.

I could not find a way to set the current page dinamically using javascript.

Y found the control:

Code: Select all

viewer.jsObject.controls.textBoxes.PageControl
But still , cant make it work.

Thanks

Re: Setting the current page using javascript.

Posted: Thu Mar 16, 2023 7:25 pm
by Lech Kulikowski
Hello,

Please try to use the "GoToPage" action.

Thank you.

Re: Setting the current page using javascript.

Posted: Sat Mar 18, 2023 4:40 pm
by rjorge99
Thank you. it worked

Re: Setting the current page using javascript.

Posted: Mon Mar 20, 2023 8:41 am
by Lech Kulikowski
Hello,

You are welcome.