?
Solved

remembering username & password html5 iphone web app

Posted on 2011-02-27
1
Medium Priority
?
956 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Suggested Courses

752 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