Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 54

Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
02/17/13 05:16 PM (12 years ago)

Store dataURL Locally?

Hi All, Is it possible to store a dataURL locally on the device? Thanks, Jake
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
02/17/13 09:15 PM (12 years ago)
not without some code manipulation. It takes the value in that field and tries to go on the web to get the file. It wouldn't take much to redirect it to a local file, though. But the better question is, why would you want to? If it's local, it can't be changed. You're better off skipping the dataURL property altogether.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
02/17/13 09:47 PM (12 years ago)
But what if my quiz questions are in JSon Format? (I want the app not require Internet)
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
02/18/13 08:23 AM (12 years ago)
Can you use the JSON Snippet Keeper? That way you can copy and paste the JSON in without needing an external file.
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
02/18/13 09:24 AM (12 years ago)
How could I store the child items as JSON Snippets?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
02/18/13 09:28 AM (12 years ago)
You need to copy and paste the entire screen's json data as a snippet, like so: {"itemId":"QuizID", "itemNickname":"Quiz", "childItems":[ {"itemId":"Question1"}, {"itemId":"Question2"} ]}
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
02/18/13 06:51 PM (12 years ago)
@chris 1: Thank you for your help. Jake
 

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.