facebook

I need help: store and read data

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

    gbbus
    Member

    Hello, 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

    #313956 Reply

    support-michael
    Keymaster

    Hi 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

    #313957 Reply

    gbbus
    Member

    I 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

    #313959 Reply

    support-michael
    Keymaster

    I 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.zip

    Final 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 Team

    Attachments:
    You must be logged in to view attached files.
    #313976 Reply

    gbbus
    Member

    OK, thanks. I will look for it and try it….

    #313977 Reply

    gbbus
    Member

    Hello 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

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: I need help: store and read data

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