Questions tagged as 'javascript'

1
answer

Ajax Polling shared between tabs

First of all, I need to inform the current situation. I have a website, there is a polling ajax, which makes requests every 5 seconds for notifications and the like. The entire site is supported by two servers, one for NGINX and one for My...
asked by 01.09.2016 / 15:58
2
answers

Chronometer + Calculation in seconds

I have the code of a stopwatch and I would like your help to implement a calculation, I will try to explain it as well as possible. Stopwatchcode: var segundo = 0 + "0"; var minuto = 0 + "0"; var hora = 0 + "0"; function tempo() { i...
asked by 26.09.2016 / 15:44
4
answers

Run command Ctrl + V "paste" with mouse click inside an input

Hello friends is it possible with a mouse click to execute the command Ctrl + v "paste" into an input with jquery? I already have a script that copies everything inside the input. now I need another one that when I click on another input past...
asked by 28.09.2016 / 02:27
1
answer

Thumbnails with NodeJS

How can I generate thumbnails of images I get in the base64 format with NodeJS? I currently save only the original but would like to create the thumb of each.     
asked by 18.01.2017 / 12:29
1
answer

TypeError: document.getElementsById is not a function [closed]

I just want to add the values I get in input , what's the problem with the code? <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script type="text/javascript">...
asked by 12.08.2016 / 00:18
1
answer

Help to subtract 2 results

Hello, I'm not sure what to do, but I do not know what to do. <script src="jquery_somar.js"></script> <!-- 1 Soma das Entradas --> Soma das Entradas <div class="Entradas">100,00</div> <div class="Entradas...
asked by 14.08.2016 / 15:52
2
answers

PHP progress bar

I'm using the functions below to make a progress bar: <script> function upload() { var request = new XMLHttpRequest(); request.upload.addEventListener("progress", uploadProgress, false); //envia o form var formData = new FormDat...
asked by 22.11.2016 / 16:51
1
answer

How to insert value in html attribute with javascript [duplicate]

A doubt How to insert a value inside an href="" attribute with javascript     
asked by 02.07.2016 / 07:30
2
answers

How do I prevent my firebase application from being used on other sites?

How do I prevent others from taking this code from my site and using it on others, or how to make it work on mine? var config = { apiKey: 'your-api-key', authDomain: 'your-auth-domain', databaseURL: 'your-database-url',...
asked by 08.07.2016 / 16:08
1
answer

Send data to the client without using an additional url

Hello. What I want to know is the best way to send data to the client and this data will be received through a function (which can be executed in a click). In the example below I will render a page (I am using express in node.js): app.get('...
asked by 09.07.2016 / 21:22