Discussion Forums  >  WebViews and HTML for Mobile

Replies: 8    Views: 216

Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
07/31/13 12:04 AM (10 years ago)

HTML5 form local store help

Hi I want to make a form for my application so that the user can store his own prefix contacts i found this nice code/explanation : http://mrbool.com/creating-a-crud-form-with-html5-local-storage-and-json/26719 i store it to my BT_Docs folder and open it from a html screen i have made it open and could add the data and hit the save but havent made it appear the saved data :( i have stores all the (.js .css ) files in the same root as the index.html is have to do anything special coding for .js file to apear in my phone? thanks in advance
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/31/13 01:55 AM (10 years ago)
Are you working on an iOS project or an Android one?
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
07/31/13 02:29 AM (10 years ago)
hi i am working in a Android project for the moment... but planing if make it work publish it then and in ios (but this is a later option)
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
07/31/13 09:37 AM (10 years ago)
I gave HTML5 local storage a shot some time ago, and was able to get it to work with iOS, but not with Android. Not sure what the issue was...I think something to do with the Javascript DOM or something another! Will be watching this thread to see if you get it worked out! Mark
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
07/31/13 04:01 PM (10 years ago)
Following this thread! LA Edit: If you are still trying to store on the device, then wouldn't you still have to use sqlite?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/31/13 04:12 PM (10 years ago)
There's multiple ways to store data on a device. One is SQL lite. One is saving a file to the device or sdcard. One is using preferences. And one is using localStorage via JavaScript.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/31/13 04:13 PM (10 years ago)
Make sure your js file is referenced properly. Do other JS commands work? Try an alert.
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
07/31/13 09:03 PM (10 years ago)
Thanks for the replies As i see the solutions needs more skills in coding than i have (newbie) so have to find an other solution to that i want to do :(
 
LA
Aspiring developer
Profile
Posts: 3278
Reg: Aug 16, 2012
Jerseyville, IL
42,880
like
08/01/13 05:40 AM (10 years ago)
Caslor, I think you have the right idea but just needs some tweaking. I'm trying to do this myself also. LA
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.