Browse pages - last page value

Questions related to customising nuBuilder Forte with Javascript or PHP.

Browse pages - last page value

Postby Janusz » Wed May 22, 2019 4:25 pm

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?
Janusz
 
Posts: 244
Joined: Fri Dec 28, 2018 10:11 pm
Location: Krakow, Poland

Re: Browse pages - last page value

Postby kev1n » Wed May 22, 2019 4:30 pm

Code: Select all
var lastPage = $('#nuBrowseFooter').text().match(/[0-9]+/g);
alert(lastPage);
kev1n
 
Posts: 314
Joined: Mon Oct 15, 2018 2:13 am

Re: Browse pages - last page value

Postby Janusz » Wed May 22, 2019 4:36 pm

Thanks a lot - works fine.
Janusz
 
Posts: 244
Joined: Fri Dec 28, 2018 10:11 pm
Location: Krakow, Poland

Re: Browse pages - last page value

Postby admin » Thu May 23, 2019 8:50 am

.
admin
Site Admin
 
Posts: 3153
Joined: Mon Jun 15, 2009 9:53 am


Return to Custom Code