jstorage

Authenticate with Moodle from a mobile app

六眼飞鱼酱① 提交于 2019-12-30 14:16:33
问题 My mobile app needs to log in to Moodle to get Json data from a webservice and display it using Angular. In order to do that, I need to pass in a username and password and get a Moodle webservice token back, so my app doesn't need to log in again (at least until the token expires). (this is one of those "ask and answer your own question" things, so my solution is below, but comments & suggestions welcome.) With thanks to all the other StackOverflow pages I have used to create this solution!

Options to store data on desktop, using webpage

邮差的信 提交于 2019-12-23 04:14:04
问题 Goal: To sum it up, I'm trying to replace an excel spreadsheet. I'm creating an application that will run in IE9, but does not connect to the internet or an intranet (I know, I know. Just bear with me. If you're curious read more below). It needs to use CRUD (create, read, update, and delete) methods on a set of data that changes daily. The dataset must persist even when the browser is closed. Question: What options are available, using javascript and html, for storing data on the local

dynamic array to local storage/jstorage?

你离开我真会死。 提交于 2019-12-08 08:41:16
问题 I am pushing values in to my array every 10 seconds which is being displayed by innerHTML on a div. Onreload or on visit to some other web page I want to display the already pushed content and the content being pushed presently. I have gone through local stroage and jstorage tutorials. This is what I am doing precisely=: localStorage.setItem('names', xyz); I know how to store one variable,but what when we have a dynamic array being updated/10sec and data being pushed in it every 10 seconds

Options to store data on desktop, using webpage

 ̄綄美尐妖づ 提交于 2019-12-06 16:47:18
Goal: To sum it up, I'm trying to replace an excel spreadsheet. I'm creating an application that will run in IE9, but does not connect to the internet or an intranet (I know, I know. Just bear with me. If you're curious read more below). It needs to use CRUD (create, read, update, and delete) methods on a set of data that changes daily. The dataset must persist even when the browser is closed. Question: What options are available, using javascript and html, for storing data on the local computer the web page is accessed on? I'm doing this at work, so there will be no server-side to this. I

dynamic array to local storage/jstorage?

大兔子大兔子 提交于 2019-12-06 15:28:30
I am pushing values in to my array every 10 seconds which is being displayed by innerHTML on a div. Onreload or on visit to some other web page I want to display the already pushed content and the content being pushed presently. I have gone through local stroage and jstorage tutorials. This is what I am doing precisely=: localStorage.setItem('names', xyz); I know how to store one variable,but what when we have a dynamic array being updated/10sec and data being pushed in it every 10 seconds.how do I set and get this dynamic array even when I go to some other link. If you are interested in my

jScript debugger error, in simple script

徘徊边缘 提交于 2019-12-01 12:54:23
I'm working on a local html file, stored on a Win7 machine and opened in IE 9. This html file uses javascript and jStorage. However, when I run, I get the error "SCRIPT5007: Unable to get value of the property 'set': object is null or undefined." This error points to the statement $.jStorage.set("Key", "Hello"); . What am I doing wrong? I've made the html and javascript about as basic as I can, to narrow things down. Here's the html: <!DOCTYPE html> <html> <head> <title>Backlog Tracker</title> <script src="jquery-2.1.1.min.js"></script> <script src="json2.js"></script> <script src="jstorage

jScript debugger error, in simple script

杀马特。学长 韩版系。学妹 提交于 2019-12-01 10:58:36
问题 I'm working on a local html file, stored on a Win7 machine and opened in IE 9. This html file uses javascript and jStorage. However, when I run, I get the error "SCRIPT5007: Unable to get value of the property 'set': object is null or undefined." This error points to the statement $.jStorage.set("Key", "Hello"); . What am I doing wrong? I've made the html and javascript about as basic as I can, to narrow things down. Here's the html: <!DOCTYPE html> <html> <head> <title>Backlog Tracker</title

Getting Angular to work with a Moodle webservice

跟風遠走 提交于 2019-11-30 19:11:53
问题 I am building an application to get Json data from a Moodle web service, and using AngularJs to display the data in the app. There are multiple functions on the Moodle webservice, so I need multiple controllers in the Angular app. I am using Visual Studio and Cordova to write the app. I have come up with a solution for getting the token from Moodle, storing it using jstorage, and displaying it on the various panes of the single-page mobile app. With thanks to many other StackOverflow answers