anon
Posts: 0
Joined: Sun Apr 13, 2014 12:10 am

Get page name javascript

How do I use an Appery call to get the current page name so that I can create logic for pagination using Appery(myPage, {});

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Get page name javascript

Hi -

You can try something like this:
precode
var pagePathName= window.location.pathname;
return pagePathName.substring(pagePathName.lastIndexOf("/") + 1);
/code/pre

Walter Zielony
Posts: 0
Joined: Wed Feb 11, 2015 2:39 pm

Get page name javascript

Apperyio.CurrentScreen seems to do the trick also.

Fernando
Posts: 0
Joined: Sat Mar 14, 2015 10:59 am

Get page name javascript

When testing in the mobile web test emulator only works Apperyio.CurrentScreen
The other code shows my default start page but not current page in the emulator.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Get page name javascript

Hello,

What project type do you use JQM or Ionic?
Could you please specify do you need any assistance with it?

Return to “Issues”