Questions tagged as 'javascript'

1
answer

Zero Specific field in the Form

As I do not have much knowledge in javascript I ask for help from you ... In this code, I need to reset a specific field that is the People field by the last field Select This form is a calculator, you would like it if you clicked on the la...
asked by 28.12.2017 / 15:52
1
answer

Modal / script does not appear in box. and

Can anyone help me what's missing from my modal? Just missing css or missing something in the code? code: <!doctype html> <html> <head> <meta charset="utf-8"> <title>Documento sem título</title> </...
asked by 28.12.2017 / 12:58
1
answer

I'm having trouble removing a number from html

I'm having trouble removing a html numbering already tried everything and nothing the slide looks like this: And how would I change from img to text? HTMLcode:<!doctypehtml><html><head><metacharset="utf-8"> <title&...
asked by 27.12.2017 / 19:05
1
answer

How to do version control for JS, CSS, HTML, and etc file

I would like to know how to do the versioning control of my Js, CSS and HTML files, because when I upload a new version on the server, the website will cache the files. I saw that there was grunt-usemin , but I could not find any explan...
asked by 02.01.2018 / 18:36
1
answer

How to return values using .map () in JavaScript

I'm trying to make a .map() method, but I'm not getting it. My last code was this: var double = x => x * 2; function filtro(funcao, numeros) { let arr = []; for (let i = 0; i < numeros.length; i++){ arr.push(nu...
asked by 27.01.2018 / 00:11
1
answer

Newsletter with refresh ajax

I'm trying to send this form via ajax and I'm not getting it, is something wrong? I'm banging my head on it, you love it for four hours without success. Note: I'm developing via wordpress and I'm using a plugin called Newsletter to store the...
asked by 27.01.2018 / 17:44
1
answer

Return function true returns false on a Vue expression

I've created a method that serves to make a difference on a particular date with today's date. With the code I put, it returns true . But when I use it inside a computed value, it returns undefined . And in the computed value I make...
asked by 27.01.2018 / 17:38
1
answer

variable access within setInterval

Good morning, I'm trying to know how to access an attribute declared in a setInterval / setTimeOut function in another function. With the little bit of study I have on JavaScript, a variable declared in local scope can not be accessed in another...
asked by 22.12.2017 / 14:34
1
answer

JSON file reading by JavaScript

I need to read a JSON file through JavaScript and assign each item of it to a single variable, as I did in this algorithm: function leitura(){ var arquivo = **Ler arquivo**('json/teste.json'); var conteudo; **Laço de repetição**{...
asked by 26.12.2017 / 12:36
1
answer

Help with AJAX request

I have this function that searches the database for the quantity of products in stock. public function contarProduto() { try { $pdo = Conexao::getInstance(); $sql = "select id_produto as produto, sum(quantidade) as quantida...
asked by 02.01.2018 / 02:41