Android Question localstorage not working in local html

John Woodsmall

Active Member
Licensed User
Longtime User
i have a working html page (on the desktop).
It does not work in the /file folder as html with localstorage.
function xstore()
{
var wag = document.getElementById('Cust_name').value ;
window.localStorage.setItem("Cust_name",wag);
var equ = document.getElementById('Equip_Mod').value ;
localStorage.setItem("Equip_Mod",equ);
var equ_num = document.getElementById('Equip_Num').value ;
localStorage.setItem("Equip_Num",equ_num);
alert(wag);
}
function xrestore()
{
var wag = document.getElementById('Cust_name') ;
wag.value= localStorage.getItem("Cust_name");
var equ = document.getElementById('Equip_Mod');
equ.value= localStorage.getItem("Equip_Mod");
var equ_num = document.getElementById('Equip_Num') ;
equ_num.value = localStorage.getItem('Equip_Num') ;
}

is there a way to get localstorage to work with android/chrome?
 

sorex

Expert
Licensed User
Longtime User
what is the point to keep using these html pages when you can build the form with B4A?

worst case you stick to your html but use that extended web library to fetch data of it.
 
Upvote 0

John Woodsmall

Active Member
Licensed User
Longtime User
we have 30 web pages that the customer likes and we have to keep.

what "extended" web library? how do i get it how do i put it into the program.

i have not idea about library or how to use it.
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
we have 30 web pages that the customer likes and we have to keep.

what "extended" web library? how do i get it how do i put it into the program.

i have not idea about library or how to use it.
If you have 30 web pages then what's the point to create an app and use WebViews?, it would be better to develop a "mobile" website.
 
Upvote 0
Top