Questions tagged as 'javascript'

0
answers

Execute a function and it takes more than x seconds of the error - React Native

Good afternoon! I made a function that searches the data of a JSON on the Web, but wanted to wrap it in a function that would take longer than for example 10 seconds to explode an error on the screen, currently the page is only blank, it only...
asked by 20.11.2018 / 19:13
2
answers

Get callback response

How do I get / answer the callback here? const arr = ["Lucas"]; function minhaCall(sobrenome, indice) { return indice + 1 + ") " + sobrenome + " de Carvalho"; } arr.forEach(minhaCall) For example, I can not give console.log(arr.for...
asked by 20.11.2018 / 19:15
0
answers

How do I disable the "click event" on the days of the "Date Range Picker"?

I'm trying to prevent the click event on each day from DateRangePicker , I'm just trying to prevent users from changing the period. I've created a pen in Codepen, follow link: link HTML <input data-start="16/11/2018" data-end="...
asked by 20.11.2018 / 13:14
0
answers

Error generating date range with js

I have the following code to get a range of dates and send to my PHP function (which is ok already): function calcular(){ var quantidade = document.getElementById('qnt').value; var inicio = document.getElementById('in...
asked by 20.11.2018 / 12:33
1
answer

Automatically save to the bank after changing the value of select

I am using the DataTable to show a table to the user with some information, in one of the columns (Status) a select with options is displayed. I want you to select another option from the select, it is automatically saved to the database. I'm no...
asked by 19.11.2018 / 15:03
0
answers

Add value to a script property

Hello, I have the following code <html> //=======Teste1======== <script type="text/javascript" src="http://modulo.que.sera.carregado.js"data-token=""> </script> //=======Teste2======== <script> s...
asked by 19.11.2018 / 15:33
0
answers

Call Javascript function after Upload page

Good morning everyone I have a function to multiply qnt * total, but it only loads after clicking on the vrunitario field. I would like that when I opened the page she calculated, I do not know where I went wrong here in the code....
asked by 19.11.2018 / 14:54
0
answers

reload javasript

Good afternoon, I would like a help regarding my reload, it happens that I have a function that feeds my view and at the end of it within a time interval of 5 me it applies the reload so that the data is updated, however there are filters whi...
asked by 26.11.2018 / 19:24
1
answer

returning blank autocomplete

I do a search in my database to search for product names without exceptions (I do not know if it's relevant, but this return is a string list) var listaDosProdutos = _servico.ObterNomeDosProdutos(); Then I take this list and do a search of...
asked by 26.11.2018 / 19:15
0
answers

Validation of multi-forms Jquery

I created a form, where I have a SELECT with three options, and when selecting them, jquery displays different form options with their respective contents (there are three DIVs with hide class to hide them). The problem is that when submitting t...
asked by 17.11.2018 / 21:46