facebook

password help? CLOSED

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

    AdamRogan
    Member

    Hi all,
    I would like to have a screen, where the user submits a code, that is set, once code is entered click submit the user will be taken to a new screen.
    Or on click go to screen add a password popup once entered, will open screen.
    hope that makes sense,

    Thought change!
    Button on click enter a password, when correct password entered go to url in popup window.
    cheers, thanks.

    #351225 Reply

    Code_A
    Member

    It sounds like you want the password local to the device…is this correct?

    If so then You can use localStorage to save the password. Upon app startup just check to see if the value is null, if it is then use gotoScreen to have the user set a password, if it’s not then require them to enter the password on the startup screen and then use gotoScreen if it is correct.

    #351228 Reply

    AdamRogan
    Member

    Yes a local password is fine, it doesnt need to be hack proof,
    Just want users to be restricted to one screen in the app,
    Not sure what to do, never done password related things before,
    do you know where i could find a sample code example,
    i thought i seen one before on this forum but cant find it?
    cheers

    #351230 Reply

    AdamRogan
    Member

    i have tried this with no luck.

    phoneui.prePageTransition = function(currentScreenId, targetScreenId) {
      // add custom pre-transition code here
      // return false to terminate transition
      {
    function();
    }
    
    if (currentPageId == '#m1-name') {
    another function();
    }
      var enteredPassword = $('#m1-Untitled1-textField1').val();
    if(currentScreenId == '#m1-Untitled1' && targetScreenId == '#m1-Untitled2')
    {
    if(enteredPassword !="1234"){
      return true;
      }
    }
    

    text field , and a button,
    not sure how to link them all?
    do i need any javascript on textfield, and do i just set my button to screen or have javascript.?
    cheers………

    #351244 Reply

    AdamRogan
    Member

    OK i found the password post and sample. new it was on here!
    you can close this cheers.
    link if anyone else needs it, http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=5341&hilit=password+lock+app

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: password help? CLOSED

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