Questions tagged as 'javascript'

1
answer

JQuery - access array error

I need to compare two arrays, one with calendar days and one with registered days. When the registered day is corresponding to the value of the innerHTML property of the array of div it should paint the background of this div...
asked by 02.01.2015 / 22:19
1
answer

Simple multiplication in JavaScript

I have the Google Maps v3 code, which calculates the distance between two points: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Calcular distancia entre cidades (mapas e rotas)&l...
asked by 18.12.2014 / 13:30
1
answer

Fetch vs XMLHttpRequest vs Jquery Ajax

Hello. I know that the Fetch method of ES6 is the most recent. But I saw on the JSPerf site that fetch is the slowest compared to the famous XmlHttpRequest of JS Vanilla, and even slower than $.Ajax of JQuery. Why...
asked by 10.01.2018 / 12:50
1
answer

Countdown timer is bringing the wrong value

I copied a function from W3Schools to create a regressive timer. But the end date will be dynamically passed, in case the end date would be 09/06/2018 My question is how to pass the end date in a way that function new Data().getTime();...
asked by 09.06.2018 / 19:49
1
answer

Browser talk to user press key

I'm doing a blind person-oriented project, I was wondering if there is any way to make the browser speak by voice "Press the ENTER key to speak", I'm using SpeechRecognition to recognize the user's talk, but I have not found any site that I rese...
asked by 19.05.2018 / 22:35
1
answer

Change CSS value according to Scroll

I need to, when I scroll the page, apply css to div, for example: When the user arrives in the middle of the site, or in the desired section, apply a CSS from this point to a div , as it scrolls down the page, it changes the value of th...
asked by 20.12.2017 / 20:26
1
answer

Move SVG objects

I have 3 SVG rect objects. I want to move them with the mouse. The problem is that I can only move when I create the object dynamically in the JavaScript code. If I create in HTML within SVG, I can not move. Example: link     
asked by 11.03.2015 / 17:33
1
answer

What is a javascript Override?

I'm working on a project where I have to do 'parser' of a remote site to change various contents of it, everything is right except the functions that involve javascript/ajax. The functions do not work, the 'parseado' site al...
asked by 20.03.2015 / 17:45
1
answer

Print table with ajax and php

I am trying to print a table using php, ajax and mysql. I have this stretch in Html <!DOCTYPE html> <html> <head> <title>Teste Ajax</title> <?php require("cabecalho.php"); ?> <script src="//code.j...
asked by 30.11.2017 / 17:37
1
answer

How to preview several different images?

How do I preview several different images from different inputs? Here is an example of how I wanted it to be HTML <div class="col"> <input type="file" class="custom-file-input" name="arquivo" id="files" onchange="preview(t...
asked by 06.06.2014 / 20:29