Questions tagged as 'javascript'

4
answers

Calculus response as NaN

I'm trying to get data from the database, for each input, to make calculations with each other in real time and give me a final value before registering the form. I have a table and in that table, a part of tr is added dynamically. the...
asked by 04.04.2017 / 17:24
1
answer

Load data from a list of a method in the servlet

Good afternoon person! I have this method in the servlet that returns a list of values. How do I load the values it has with jquery? @WebServlet({"/ControleMovEstoque","/template/buscaMaterialExist.html","/template/cadEntradaEstq.html"}) publi...
asked by 31.03.2017 / 21:40
1
answer

Google Maps JavaScript API with Geocoding Service

I'm now using other Google Maps API JavaScript utilities, I've changed some parts of the code, and it ran into more or less problems this time around @Sergio helped me Link the question: Uncaught TypeError: Can not read property 'split' of undef...
asked by 20.03.2017 / 19:15
2
answers

How to render children in React?

I have the following components: Obj import React from 'react'; export default class Obj extends React.Component { constructor(props) { super(props); console.log(props); } render() { let objs = Object.e...
asked by 20.03.2017 / 14:14
1
answer

Import Excell XLS Worksheet and write to MySQL database

PROBLEM: I have some spreadsheets where I get some information, which is updated every 6 hours. The main difficulty is when I need to compare some information between the last 2.3 worksheets for example, since I need to open one and th...
asked by 20.03.2017 / 13:52
1
answer

How to Clone Array

I'm wandering about a means of getting all elements of the array in question back, all over again. See this my source code below: Code <html> <body> <button onclick="next()">APAGAR</button> </body...
asked by 18.03.2017 / 20:32
1
answer

Problem with div size when scrolling page

I've developed an effect that decreases the height of my div when I scroll on the page but when I use scroll the effect usually occurs more when I upload the page div does not return to normal would like to know why the code...
asked by 11.04.2017 / 14:07
2
answers

Send input value to modal

I need to get the value of an input and send it to a modal bootstrap. I did a test but I do not know what I'm missing. <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv...
asked by 07.04.2017 / 22:14
1
answer

Show age between 20 and 30 in an array - javaScript

I would like to create a function as simple as possible that it receives an Array of Person objects (example format: {name: "Alex",age: 24} ) that returns a new array only with Person objects that are aged between 20 and 30 years. My...
asked by 06.03.2017 / 21:24
1
answer

Update a PHP variable within a Javascript function

I am using the following code to display the current time of the server: <p id="demo"></p> <script> function segundoAtual() { var n = <?php date_default_timezone_set('America/Sao_Paulo'); $cH = date('G');...
asked by 07.03.2017 / 02:01