Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Browse pages - last page value

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Browse pages - last page value

Unread post by Janusz »

In the Browse form I can go to any page wih nuGetPage(x).
But how to get in JavaScript the value of the last page of the actual form?
If you like nuBuilder, please leave a review on SourceForge
kev1n
nuBuilder Team
Posts: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 446 times
Contact:

Re: Browse pages - last page value

Unread post by kev1n »

Code: Select all

var lastPage = $('#nuBrowseFooter').text().match(/[0-9]+/g);
alert(lastPage);
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Re: Browse pages - last page value

Unread post by Janusz »

Thanks a lot - works fine.
If you like nuBuilder, please leave a review on SourceForge
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Browse pages - last page value

Unread post by admin »

.
Post Reply