facebook

How to open new page using javascript

💡
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 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #336141 Reply

    nabeelnar
    Member

    I have page called login.mobi, i have a button called Login, once i clicked this button, some validation using javascript need to be run, if everything is ok, i need to open page called main.mobi.
    i tried to use window.open(), or window.location.href but without any success..
    please help

    #336142

    nabeelnar
    Member

    I have page called login.mobi, i have a button called Login, once i clicked this button, some validation using javascript need to be run, if everything is ok, i need to open page called main.mobi.
    i tried to use window.open(), or window.location.href but without any success..
    please help

    #336143

    @nabeelnar,

    You should use next javascript snippet:
    phoneui.gotoPage(‘m1-Login’, “FADE”)

    For more info see: http://www.genuitec.com/support-genuitec/viewtopic.php?p=5707#p5707

    #337046

    nabeelnar
    Member

    thank you for you reply, i tried it for a page that already linked by button, and it worked, ex: in login page, i have a button called new user, which redirecting to new user page, in this case phoneui.gotoPage(‘m1-newuser’) worked, but in case i want to redirect for other pages, it is not working.. can you help please

    #337057

    Brandon
    Member

    If the pages are not linked by a button or something you will need to add them using the Additional Files feature so M1 knows to include them in the compiling.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: How to open new page using javascript

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