Questions tagged as 'localstorage'

1
answer

Calculate time online with JavaScript / jQuery

I need to develop a code where I do not have access to back-end languages, I need to do a function that calculates how long a user is online on the page and save this time in localStorage in>, I thought I'd use a setInterval every 1 s...
asked by 05.04.2014 / 04:29
1
answer

retrieve array from localstorage and transform into a sql query in php

I'm developing a feature for adding and removing favorite properties with localstorage. //Com esse código eu recupero os itens que foram armazenados em um array no localstorage $(function(){ var favoritos = JSON.parse...
asked by 26.08.2015 / 15:30
0
answers

What's the difference between Local Storage, Session Storage and Cookie? [duplicate]

What is the difference between Local Storage , Session Storage and Cookie ? What is the purpose of each one of them and what sets them apart?     
asked by 17.05.2017 / 16:58
2
answers

Local Storage - Always replaces the last data

I have this code: var ClienteArray = []; $('#btn-save').click(function(){ var cliente = JSON.stringify({ Code : $('#stn-code').attr('value'), Name : $('#stn-name').attr('value') }); ClienteArray.push(cli...
asked by 20.10.2016 / 14:00
2
answers

Add object in LocalStorage [object Object] [duplicate]

I've added an object in LocalStorage as follows: user: { authenticated: false, email: '', id: '', cpf: '' } localStorage.setItem('userData', this.user) When I'm going to recover, localStorage.get...
asked by 23.10.2018 / 15:39
5
answers

Is it possible to make a file upload system without using PHP?

I have to make a video upload system, at first, without using the "server side". I would like to know if you have how to do this without using php, using SQLLite or Local Storage. I already researched several sites and did not find much (and I'm...
asked by 28.07.2014 / 16:17
1
answer

Problems with PhoneGap and Storage HTML5

I'm creating a small application where I have to store the driver data retrieved from a proper API to the application's local database. After a lot of head-shifting, I chose to use HTML5 Storage. At first I did not have major problems at first....
asked by 28.08.2014 / 21:44
1
answer

Is there a way in ASP.Net MVC, in controller to access a variable in sessionstorage or localstorage?

I need to get the value of a variable stored in the sessionstorage through a controller where this method is not passed the parameter of this variable. Session / localstorage are administered through javascript. In contrast situations it...
asked by 01.02.2014 / 19:33
1
answer

Return JSON saved in localStorage

I'm trying to retrieve a JSON that I've saved in localStorage, in the salvarOffline() function. With code like the listarHorarios() function I get a undefined and the loop repetition does not work. My code: function salvar...
asked by 24.03.2018 / 06:20
2
answers

Exchange array data between 'S' and 'N'

I have a function that I will adapt for a button, which will exchange a data within an array, between S and N . The code I have is: var array = [{"nome":"1","faltou":"N","goleiro":"N","pago":"N"},{"nome":"2","faltou":"N","golei...
asked by 18.10.2018 / 23:44