local-storage

Can I use some sort of local storage as a temporary holding place for getUserMedia for near-RTC?

梦想的初衷 提交于 2019-12-17 13:22:19
问题 I have a use case that doesn't exactly require real time communication, but as close as I can get it to make sure my users don't have to wait forever uploading a file after the fact. Our site allows users to record video and audio that we then store on our server. I moved from flash, because flash, to a WebRTC implementation with a Kurento media server. This works super well with high quality internet connections but is relatively lacking for users with poor connectivity. I was thinking if I

json.stringify does not process object methods

旧街凉风 提交于 2019-12-17 09:33:30
问题 I am trying to develop an offline HTML5 application that should work in most modern browsers (Chrome, Firefox, IE 9+, Safari, Opera). Since IndexedDB isn't supported by Safari (yet), and WebSQL is deprecated, I decided on using localStorage to store user-generated JavaScript objects and JSON.stringify() / JSON.parse() to put in or pull out the objects. However, I found out that JSON.stringify() does not handle methods. Here is an example object with a simple method: var myObject = {};

Access Denied for localstorage in IE10

廉价感情. 提交于 2019-12-17 08:49:15
问题 Yesterday I installed Windows 8 and am now trying to understand why I am getting an "Access Denied" message when accessing localstorage. The page is being served on the same PC with the browser (http://localhost). My feeling is that one of the security settings in IE 10 is wrong, but I haven't figured out which one. The line of JavaScript code triggering the error is: if(window.localStorage.getItem('phone') == null) The code works fine in the latest version of Chrome. 回答1: Our users were

Access Denied for localstorage in IE10

六眼飞鱼酱① 提交于 2019-12-17 08:48:06
问题 Yesterday I installed Windows 8 and am now trying to understand why I am getting an "Access Denied" message when accessing localstorage. The page is being served on the same PC with the browser (http://localhost). My feeling is that one of the security settings in IE 10 is wrong, but I haven't figured out which one. The line of JavaScript code triggering the error is: if(window.localStorage.getItem('phone') == null) The code works fine in the latest version of Chrome. 回答1: Our users were

What happens when localStorage is full?

这一生的挚爱 提交于 2019-12-17 08:30:06
问题 I have found articles regarding cache behaviour so i can only assume that it's not much different but i wanted to make sure. I have read that most browser have 5MB (give or take) for localStorage and i was intrested in what would be the behaviour of the browsers? I understand every browser acts diffrently but i'm intrested mostly in Safari, Chrome and Firefox (as those are the ones i consider as browsers). Will the browsers mentioned above delete data from my website or it will choose "the

local storage in IE9 fails when the website is accessed directly from the file system

孤人 提交于 2019-12-17 07:42:36
问题 Both statements window['localStorage'] and window.localStorage are undefined when accessing the url "file:///C:/index.html" Is localStorage off limits when running websites on the filesystem? PS. I'm running the website on a Windows 7 phone hosting the website in isolatedStorage. 回答1: Yeah, IE9 doesn't support localStorage for local files. Not in any official documentation that I can find, but the same issue is described in this blog. You'll have to either host the website externally, or find

How to store token in Local or Session Storage in Angular 2?

泪湿孤枕 提交于 2019-12-17 05:40:33
问题 I want to use Local or session storage to save authentication token in angular 2.0.0. I use angular2-localstorage but it works only angular 2.0.0-rc.5 and when I used it in 2.0.0 it through me Type error. I want to use default local storage of Angular 2.0.0. 回答1: Save to local storage localStorage.setItem('currentUser', JSON.stringify({ token: token, name: name })); Load from local storage var currentUser = JSON.parse(localStorage.getItem('currentUser')); var token = currentUser.token; //

How to store token in Local or Session Storage in Angular 2?

六眼飞鱼酱① 提交于 2019-12-17 05:40:16
问题 I want to use Local or session storage to save authentication token in angular 2.0.0. I use angular2-localstorage but it works only angular 2.0.0-rc.5 and when I used it in 2.0.0 it through me Type error. I want to use default local storage of Angular 2.0.0. 回答1: Save to local storage localStorage.setItem('currentUser', JSON.stringify({ token: token, name: name })); Load from local storage var currentUser = JSON.parse(localStorage.getItem('currentUser')); var token = currentUser.token; //

Is it possible to use any HTML5 fanciness to export local storage to Excel?

放肆的年华 提交于 2019-12-17 04:58:54
问题 This question is similar, but doesn't highlight any possibilities to export the data. Thoughts? 回答1: I think you're misunderstanding the answer to the question you linked to, it's suggesting you use a Data URI for export. Excel is a bit of a complicated target to aim for as the file format is itself binary (or OOXML). If you just want something that opens in Excel then you can export the more straightforward CSV as a data URI. The following code is a bit rough and ready and has only been

How permanent is local storage on Android and iOS?

被刻印的时光 ゝ 提交于 2019-12-17 04:14:49
问题 When my app stores data locally on a phone, how permanent is that storage? I'll elaborate the exact situation: I'm building an app with jQueryMobile and Phonegap. It's essentially a browser app, but using Phonegap lets me package it and sell it in the app stores, among other advantages. Phonegap offers two ways of storage, both of which functions harmonize native functions of iOs, Android, Blackberry and some other OSs: localStorage (which is primitive key-value pairs), and a Web SQL database