Questions tagged as 'javascript'

1
answer

Go through color gradient according to the value

I need to represent the temperature of a place using colors, the lowest temperature I should represent with blue, the intermediate with yellow and the highest with red. But I can not just just set these 3 colors, I would like to have a smooth...
asked by 27.10.2018 / 02:37
1
answer

Error in program to make a market list

The problem: When running in Google Chrome, the browser accuses of having an error in the lerLista function, although I have not been able to solve it, I believe it is a problem to capture the product field. <!DOCTYPE html> &...
asked by 26.10.2018 / 02:53
1
answer

How to show a vector without going to another page

Well I'm doing a page that makes sweepstakes, I already managed to do half the work, but when I show the result of the vector it goes to another page, I wanted to know how to be able to show what's in the vector on the same page. My html &...
asked by 27.10.2018 / 15:07
1
answer

How to check if an id exists on the [duplicate] page

I made a JavaScript that generates several cards each with an id, to avoid creating repeated cards I put an if before the generation of the cards to verify that it already exists, but it did not work: $(document).on('click', '#carregarMaisFi...
asked by 28.10.2018 / 01:16
1
answer

Input hidden control checkbox

Is it possible to have an event that, depending on the change of a hidden input, does certain actions? I've done this for a checkbox , but I'm not able to do the reverse ... function getBitCheckbox(checkboxElem) { console.log(chec...
asked by 29.10.2018 / 17:02
1
answer

Get state of child component in react

How do I get a state from a child component? In my example I have Shell.js which is the parent component: class Shell extends Component { render() { return ( <div> <Nav propsdaNav={1} /> <Superm...
asked by 30.10.2018 / 05:53
2
answers

Adding values from a td column

I would like to know how to calculate the values of a column and play in a field. They are automatically loaded Thisisthehtmlofthetable.Iwanttoaddthevaluesinthevalue_postercolumnandplayintheqtdtotalfieldjustbelow.<tableclass="table table-...
asked by 30.10.2018 / 12:34
1
answer

Download generated image

I want to put on my site the option of downloading some data from a form as an image. In my current code I transform the content into image, but it is printed in HTML. Here is the simplified code in JsFiddle: link All I need now is for t...
asked by 29.10.2018 / 19:24
1
answer

Folder Listing in Node.js

People need to see all the files in a folder and list it, but calm what I want is to enter the folder and read all the files and list, but if you find a folder between it and list what's in it too . This is by ordering the files by date. Can...
asked by 10.11.2018 / 08:29
1
answer

Trigger alert using Selenium in Java

In addition to manipulating javascript alerts with Selenium WebDriver , would it be possible to invoke Selenium code runtime alerts in the browser? I would like to create the 3 javascript alert types below using selenium : alerta...
asked by 09.11.2018 / 20:59