- This topic has 5 replies, 2 voices, and was last updated 13 years, 11 months ago by gbbus.
-
AuthorPosts
-
gbbusMemberHello, i need help for store/save a few data fields from my app-mask
and read them back to my app-mask if it is reopened !I have tryed the example with DB from wayne, it works,
but how to read back the fields and show them in my app-fields ?I think, i don’t have the correct code for reading a database, can someone help or have an example ?
Or is there another way instead of DB, to store some datafields and use them later ?
Greetings from germany
(sorry for my bad english)
gerd
support-michaelKeymasterHi Gerd,
When you say you want to save some form data and retrieve it later, do you mean retrieve it later in the same session or a different session?
The reason for asking is that HTML5 local storage is pretty simple to work with, see http://developer.apple.com/library/safari/#documentation/iPhone/Conceptual/SafariJSDatabaseGuide/Name-ValueStorage/Name-ValueStorage.html#//apple_ref/doc/uid/TP40007256-CH6-SW1
Wayne
Genuitec Mobile Team
gbbusMemberI mean to read it in a new session !
I want to store password, username and url to login later onto a webserver and send this data to it,
without input all these data every time i want to login to my webserver !🙂 gerd
support-michaelKeymasterI created an experimental login app that saves the userId and password to local storage based on the article link in my earlier post. Below is a screenshot and zip of the login.mobi file. The buttons logic can be found in login_custom.js.
See attachment login-localstorage.png
See attachment login-localstorage.zipFinal note this is a hacked together example and I would not store login credentials in this manner. I’m looking into how to use keychains for this.
Wayne
Genuitec Mobile TeamAttachments:
You must be logged in to view attached files.
gbbusMemberOK, thanks. I will look for it and try it….
gbbusMemberHello Wayne, i think, i can work with your example – very good !
a question: the data is stored in iphone’s memory ? and read out from this memory ?…and how can i give these variables to my webserver or on other linked webpage ?
This doesn’t work on a link line in a button: http://www.mywebserver.de?name=useridfield&passwd=pwdfield
My webserver form receives: “useridfield” and “pwdfield”, but not the content of the fields !
I try a lot, but nothing gives me the right result !🙂 gerd
-
AuthorPosts