Solved

remembering username & password html5 iphone web app

Posted on 2011-02-27
1
934 Views
Last Modified: 2012-05-11
Hello Experts

I am writing a iphone specific web app using the iwebkit 5.04 framework, with the first screen being a login screen. What I want is when the 'Remember me' checkbox is on, for the login details to be remembered the next time app is opened from the homescreen. Currently the user has to enter the details everytime the app is opened. I have been reading lots of tutorials and it would seem localstorage is the best way to do it, but cannot find anything close to what I want. I am only just learning this html5 / iphone specific stuff so if anyone can help it would be much appreciated.

<form action="" id="frmlogin" method="post" name="frmlogin" enctype="application/x-www-form-urlencoded">
	<ul class="pageitem">
		<li class="bigfield"><input placeholder="Account No" id="txtaccname" name="txtaccname" type="text" autocapitalize="off" value=""/></li>             
		<li class="bigfield"><input placeholder="Username" id="txtusername" name="txtusername" type="text" autocapitalize="off" value="" /></li>
		<li class="bigfield"><input placeholder="Password" id="txtpassword" name="txtpassword" type="password" /></li>
		<li class="checkbox"><span class="name">Remember Me</span><input id="remember" name="remember" type="checkbox" value=""/></li>
	</ul>
	<ul class="pageitem">
    	<li class="button"><input name="submit" id="submitbtn" type="submit" value="Login" value="" /></li>
    </ul> 
</form>

Open in new window

0
Comment
Question by:dovercomputers
1 Comment
 

Accepted Solution

by:
dovercomputers earned 0 total points
ID: 34993726
Used cookies in the end when processing the login. Works fine so I'll stick with that for now.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Are you having trouble connecting or getting your iPhone / Samsung device(s) to sync with Microsoft Exchange Server?   What have you tried?   What haven't you tried?
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: blockā€¦
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now