Hi together,
I tried to use both java scripts you suggested, but no result is delivered that the local phone storage uses the member id and passcode which I saved within the test center or by using the web app after getting from the cloud.
What have I done:
1.a I took your template http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=2251. changed the fields as I need them userid and passcode. I add the form submit handler to be able to deliver the stored details of needed userid and passcode to our Web-URL as POST.
1.b. Then I tried it out it works so far to be able to log in to our website. But the passcode and username will not be stored, if I deactivate the app on iphone and reactivate the app, the data is not avaible or stored.
I put the
Java Code:
localStorage.getItem(key)
localStorage.setItem(key,value)
localStorage.clear()
addidtional in each field of java of the form, but also it works not.
1. c. Then I put in the different java code also to be used from your example
http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=2250&hilit=login+storage
Java Code:
var key = “pid”;
var data = $(“#mbr”).val();
localStorage.setItem(key,data);
key=”pwd”;
data= $(“#pwd”).val();
localStorage.setItem(key,data);
AND also no result of stored data after reactivation at iPhone.
What I want to mention is. If I try to store the data I get the message on the iPhone that on URL: http.//2point2v2.mobioneappcenter.appspot.com – the data has saved.
BUT this URL seems not right, because the details should be stored on local iphone I thougt?
Please help to find out what I have done wrong.
Greetings
Alexander