Questions tagged as 'javascript'

0
answers

Return Json with the attributes of a class without "_" in the initials

I have this following javascript class: class Usuario { constructor() { this._nome = ''; this._idade = ''; } get nome() { return this._nome; } set nome( value ) { this._nome = value; } get idade() { return...
asked by 13.10.2018 / 20:06
1
answer

How do I make an animation start at the beginning of the process and only finish when finished in jquery?

I have some difficulties in JQuery, using DataTables, where when clicking select a value in drop-list and clicking the "search" button, it does an ajax and updates the Datatables with the data selected in the drop list. p> However, I'd like to...
asked by 05.10.2018 / 21:34
3
answers

How to swap an image with Javascript

I need to change an image by javaScript but I'm not getting it, I tried the following way and it did not work; html <img id="imagemPerfil" src="img/user1.png" alt="profile image" class="circle z-depth-2 responsive-img activator gradient...
asked by 13.10.2018 / 17:37
0
answers

Save time user watched video and keep watching

Well, I finished a PHP course, I'm not an expert and I'm creating a course system. I need when the user starts watching the lesson, the system saves the video runtime every 3 seconds. And save this so that the next time he enters the site, he ca...
asked by 04.10.2018 / 16:50
0
answers

Reload in countdown clock

I need a reload in this script every 01 hour, but I do not know how to invoke it to start the countdown again. <h1>Countdown Clock</h1> <div id="clockdiv"> <div> <span class="days"></span> <div...
asked by 04.10.2018 / 16:53
2
answers

Dealing with objects in JavaScript

For each card registered, I redirect the user to his card viewing page and there ready all the cards he has already registered. Each card has its nome , so for each card I create layout and enter nome . So far so good....
asked by 04.10.2018 / 19:30
2
answers

How to send string variables as parameter for Ajax call?

The following Ajax call would send to PHP the parameters corresponding to the form that called the function: var foo = "bar"; var bar = "foo"; function register(){ $.ajax({ method: "post", url: "meu_script.php", data: $("#form")...
asked by 26.03.2014 / 18:52
1
answer

Submit of form with jquery

I have this function to check the state and CNPJ / CPF registration fields and if they are correct it performs submit , only in submit , it is not respecting the required of the fields entered in ViewModel $('#FornecedorNovo...
asked by 03.10.2018 / 20:23
1
answer

JavaScript: Add object inside an array of objects

I have: var options = { title: 'Titulo', width: largura, height: altura, vAxis: { title:"Porcentagem % em vendas", format: 'decimal' }, hAxis: { title: "Seleção de clientes - Comutativa", } }...
asked by 09.10.2018 / 20:37
0
answers

Image manipulation for prediction in tensorflowjs

I'm developing a project where an app should send an image (base64) to the server and do the recognition of the number entered. I'm using MNIST data for training and Tensorflow.js on NodeJS, but I'm having difficulty pre-processing the image bef...
asked by 06.10.2018 / 21:06