Questions tagged as 'localstorage'

1
answer

LocalStorage + PHP

I'm capturing the data from a LocalStorage, but when I put the information in a PHP variable and search the server, the query does not execute correctly. <?php session_start(); try{ require('conexao.php'); $igreja="<script>documen...
asked by 31.07.2018 / 04:43
1
answer

Storage firebase in android studio

I'm starting in programming for android and I have a project in android studio that creates photo registration, I added the firebase and I do not know how to create the code to send this data with photo, name ... if anyone can give me an example...
asked by 18.07.2018 / 20:17
1
answer

How to convert string time to Ionic time for PHP with MySQL?

Good morning, I'm passing the server a string that would be for time: 23:45 is an example. In my $ _GET I'm trying to convert this way: $prazo_entrega_min = time("hh:mm", strtotime($_GET['prazo_entrega_min'])); But to no avail. What can...
asked by 01.03.2017 / 15:26
2
answers

How can I receive names through a text field in an HTML page and save them to a vector in the browser's Local Storage?

I need help completing the function logic: <form name="form1" onsubmit="submeter()"> Nome: <input type="text" id="nome" value="" onkeyup="validarNome()"/><br/><br/> Idade: <input type="text" id="idade" value...
asked by 23.07.2016 / 06:18
0
answers

How do I persist on screen saved items in the localStorage of the browser?

Good afternoon guys, I need to create an application that, when clicking a button, retrieves data from an api and renders the screen inside a table. Each row in this table has a button to "favor" the row, which is nothing more than saving your c...
asked by 07.12.2018 / 18:09
1
answer

Retrieve data from the localStorage to a list

Good morning, I'm developing an app with ionic 3 and I have the following situation: I am writing a list of products in the localStorage, after that, I need to bring the recorded data to a list of products, that is, each vector item, creates...
asked by 29.11.2018 / 13:37
1
answer

Remove whitespace in Array

Well, I'm developing an app with ionic 3. As I try to write some data to the array, "\ n" appears at the beginning and at the end of the array. Here is the code: element = this.pedido.produto; if (this.vetCarrinhoAux.indexOf(element) === -1)...
asked by 29.11.2018 / 12:18
0
answers

How to remove an index from the localStorage

I need to manipulate localStorage and I'm not sure how to remove an item from an index. I'm very new to the subject and I'm not sure how to pass this information to the button. Follow the code: var base; //verifica se tem alguma...
asked by 11.11.2018 / 22:24
0
answers

button always falls in the same condition

I have a code that adds things to the localStorage, everything works correctly, but the delete part does not work, I'll show the code and explain below. $(function () { var operacao = "A"; //"A"=Adição; "E"=Edição var tbClientes = localStorage...
asked by 13.11.2018 / 13:50
1
answer

How to add localstorage in Typescript (Angular 6)

I have code in Typescript (angular 6) in which I for educational reasons, I want to know how to save several message variables with the following data in the cache: adicionarMensagem(preparacao: PreparacaoDeMensagem) { let mensagem...
asked by 28.09.2018 / 21:00