Questions tagged as 'javascript'

1
answer

Node js problem fetching function value

I have the following structure on node: module.exports.find = function(pesquisa,frase){ return new Promise((resolve,reject) => { pesquisa.find(frase, function(err,data){ if(err) throw err;...
asked by 01.10.2017 / 22:37
1
answer

How to upload images and display them using jquery?

How do I upload images and display them within a div, and when the user re-uploads those images to be replaced. Ex: the user uploads images img1.jpg, img2.jpg if he uploads new images img3.jpg, img4.jpg the first image should disappear. In the c...
asked by 30.09.2017 / 20:37
2
answers

How to simulate a CTRL + V with javascript [duplicate]

I would like to paste a text from the clipboard using javascript, not an extension is a web page. I tried the document.execCommand('Paste') command in some ways but it did not work, I'm using Google Chrome.     
asked by 28.09.2017 / 17:02
1
answer

increment event after a certain time

I am making an application that simulates a point marker, and I would need it to increment the next marker only after 5 minutes, I did some tests with setTimeout , but I did not get what I needed. The application makes the markings but does not...
asked by 22.01.2018 / 18:22
1
answer

Remove class and change aria-hidden value when clicking on the body

There is a project in the code pen called "Flex Priority Menu # 1.2" is a magnificent menu that when it has many links or the "resized" window, it is hiding and putting in a dropdown [More ...]. made with pure javascript, the dropdown opens and...
asked by 22.01.2018 / 21:57
2
answers

Country list and code

I have researched in several places and did not find it. If someone has or knows where I can find a javascript that brings COUNTRY + COUNTRY CODE, could you give a help? I need to pro-social project, as follows validation table of it.    ...
asked by 23.01.2018 / 11:56
1
answer

save questionnaire time

I made a questionnaire with php and javascript, that's all right. Just a little detail I'm not sure what the best way to do it. The questionnaire has a time to be answered, and I would like it if the responding user leaves the page or updates...
asked by 19.01.2018 / 12:50
1
answer

Access variable inside and outside a function in javascript?

I'm trying to update some questions on a page, traversing a _for with the number of steps equal to the total of questions, so in each passage inject a question via $ .post (), and wait for the return to only then continue the loop . I do not kno...
asked by 05.10.2017 / 01:16
1
answer

Ask the user which element they want to remove from the JavaScript Array

I'm trying to create a program in which an element can be added or removed from the Array, according to what the user places in the prompt command. I'm having a hard time removing elements from Array. Here's my program: var regiaoAmazoni...
asked by 05.10.2017 / 04:39
1
answer

VueJS / Javascript - components and variables

Hello! I have a restAPI that returns me a array of names, I wanted to know how I do to get them as componentes . Below is a better understanding: import produtos from './produtos' import artigos from './artigos' var API_Request =...
asked by 02.10.2017 / 21:49