facebook

How to know current page?

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #340374 Reply

    Muhammad
    Member

    I use phoneui.gotoPage to move other screen,
    how to check the current screen?

    phoneui.gotoPage(‘#m1-allpage’,phoneui.transitions.slideRight );

    If it already on allpage, so I want to avoid call phoneui.gotoPage again.

    Thank

    #340375

    Hi Muhammad,

    You can use: phoneui.getCurrentPageId()

    Which will return something like: #m1-screenID

    #340378

    Muhammad
    Member

    Thank you so much. it work!
    Its my code, maybe someone need.

        if(current_page != "#m1-allpage"){
            phoneui.gotoPage('#m1-allpage',phoneui.transitions.slideRight );
        }
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: How to know current page?

You must be logged in to post in the forum log in