- This topic has 4 replies, 2 voices, and was last updated 10 years, 2 months ago by AdamRogan.
-
AuthorPosts
-
AdamRoganMemberHi 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.
Code_AMemberIt 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.
AdamRoganMemberYes 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
AdamRoganMemberi 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………
AdamRoganMemberOK 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 -
AuthorPosts