Questions tagged as 'javascript'

1
answer

Error: undefined after one ajax request inside another

Follow the code: $("#l_linha").change(function(){ var linha = $(this).val(); var dados = $("#l_linha").serialize(); $.ajax({ type: 'POST', dataType: 'json', url: 'buscarPonto.php',...
asked by 01.10.2018 / 16:02
1
answer

Use the data of a request in a global variable

I have a difficulty that I'm sure is simple for you! var request = require('request') var a var b request('https://exrates.me/openapi/v1/public/ticker?currency_pair=eth_usd', function (error, response, body) { a = JSON.parse(body) b...
asked by 30.09.2018 / 16:17
1
answer

How can I scroll to a specific location on the page using jquery?

Is it possible to scroll to a specific location on the page using jQuery? The location I want to scroll must have: <a name="#123">here</a> Or can you simply pass a specific DOM ID?     
asked by 26.09.2018 / 16:41
1
answer

Appears recaptcha after 3 wrong attempts [closed]

I implemented the recaptcha on the site, but it is very costly to users every time they log in to click on the images, I wanted it to appear after 3 attempts, but I can not do it, I want to do it via JS ...     
asked by 27.09.2018 / 21:23
1
answer

CSS image gallery

I'm trying to make a gallery of images for a website, I got a demo that I found on the internet and I'm trying to edit it, but I'd like to modify it so that the images are merged, one left and one right, but not I found a way to do it. Can someo...
asked by 26.09.2018 / 19:27
2
answers

How to execute a function whose name is in the database?

I would like to know how to execute a JavaScript function by taking its name from the database. Example: data["nome_coluna"] // essa será a informação que estará no banco. (exemplo: somar();) // Aí o objetivo é executar essa função dentro de...
asked by 12.11.2018 / 20:22
1
answer

How do I get the tag size?

To make validation of date field, the fact is that I can not get the size of the field, see: <form action="" onsubmit="return valida()"> <input type="text" name="data" id="data"/> <input type="submit" name="cadastrar"/&g...
asked by 19.09.2018 / 01:11
2
answers

How to group and filter fields with JS

I'm trying to get the following result using lodash: [ { "idpai": 1, "pai": "joao", "mae": "maria", "filhos": [ {"id": 1, "nome": "joaozinho"}, {"id": 2, "nome": "pedrinho"} ] } ] with the following code: var li...
asked by 20.09.2018 / 21:34
1
answer

Computed v-for Vuejs

I have a v-for <div v-for="(m, ind) in arrayMeses" :key="ind" v-if="m" class="mes"> <table border="1" width="100%"> <tbody> <tr class="mes_title"> <td colspan="7" class="mes_...
asked by 22.09.2018 / 17:49
2
answers

Error passing arguments in JSON

I'm trying to make an insertion in MongoDB by passing some arguments in JSON: { "name": "TESTE", "category": "B", "service": "Novo processo", "description": "Novo Teste", "active": false, "classmodels": [ {"...
asked by 19.10.2018 / 20:42