Questions tagged as 'localstorage'

1
answer

How to display a menu according to the type of user logged in with Ionic / Angularjs?

Hello, I have two types of users: buyer and seller. How to display a menu according to the type of user logged in with Ionic / Angularjs? Currently, and it does not work well, I'm putting in every menu item an ng-show: ng-show="permissao...
asked by 01.02.2017 / 13:48
1
answer

How to write data in webstorage without replacing the data already recorded? [duplicate]

I created a form and when the user completes this form the data is sent to the local webstorage and from there to a table. However, whenever I write a data in the localstorage the previous data is overwritten, can I get the data to be sent to...
asked by 28.10.2016 / 02:22
1
answer

Ionic 3 LocalStorage disappearing

I have an application on Ionic 1 that saves some information on the localStorage. I rewrote the same application on Ionic 3 with the same package id (widget id in config.xml), but when installing the new application over the old one I lose the l...
asked by 20.12.2018 / 02:17
2
answers

Repeat loops with AngularJS

I'm trying to list the data of two loops ng-repeat of my code, but 1 of them is not working. In this case, I'm using: <ul class="nav nav-stacked nav-pills col-md-2" > <li ng-repeat="g in formulario.grupos"> <a...
asked by 07.02.2014 / 18:19
1
answer

Good practices for traffic object JSON [closed]

I have a grid (kendo ui MVC) today it has 35163 lines, and I need to create a button to export the contents of the grid to CSV. I thought of doing something like that, the moment I load the information to feed the grid, generate a JSON object...
asked by 29.05.2018 / 13:19
1
answer

How to apply sessionStorage or localStorage in code

I'm using the following code: <script type="text/javascript"> $(window).scroll(function() { if ($(this).scrollTop() > 300){ $('.float-menu-fixed').removeClass("closed"); $('.float-menu-fixed').addClass("visible"); }...
asked by 21.05.2017 / 07:46
1
answer

Store and retrieve variable containing HTML list using localStorage

I have a project and I'm using localStorage as the database. I use this to save a list that the user can edit and add like this: localStorage.setItem(local, $("#lista").html()); No html looks like this: <ul data-role="li...
asked by 04.10.2015 / 01:25
1
answer

How to read and write JSON locally in Cordova?

I need a simple solution to persistently load and update data in a mobile APP using Cordova. I thought about creating a JSON in the root folder of the application to load the data at APP initialization. All right, but how to do the...
asked by 11.02.2015 / 07:07
1
answer

Javascript: Master tab

I need a certain function in a project, I need some functions to only execute in a tab of my site, for example ... The user is in the HOME tab but the SOBRE , CONTATO tabs are open and on that site plays audio depending on wh...
asked by 10.06.2014 / 02:52
1
answer

Store "do not show again" with localStorage

I have a div that can be hidden when you click a button: $(".fechar").click(function(){ $("#mensagem").hide(); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><divid=...
asked by 08.11.2018 / 16:15