Questions tagged as 'javascript'

2
answers

Multiplying value of dynamic inputs

I have a table that generates rows when I click a button. In these lines there are two inputs (amount and price) that I need to get the values entered, multiply and the result display in a total column when the user clicks out of the input while...
asked by 30.07.2017 / 05:03
1
answer

Script for preview not working

I'm trying to preview the image, but I can not. I created the following code in pure javascript: var imageFileInput = document.getElementById("fileUpload"); imageFileInput.onchange = function(event){ if(typeof (FileReader) != "undefined...
asked by 26.07.2017 / 16:34
2
answers

Enable and disable fields by clicking checked

Colleagues. I have a field that I need to enable and disable when I click on a checked. See: WhenIclickchecked,Icandisableit,butwhenIuncheckit,thefieldisstilldisabled.I'mdoingitthisway:JAVASCRIPT<scripttype="text/javascript"> fu...
asked by 21.06.2017 / 22:00
1
answer

add input in time format

I have 3 input the first receives start time the second hour of exit and the third the subtraction between them. function calcular(){ var segent = parseInt(document.getElementById('segent').value, 10); var segsai = parseInt(docu...
asked by 29.07.2017 / 02:51
2
answers

Missing cookie (created in javascript) while switching pages

On the HOME page, I write an "x" value in a cookie. var dataAtual = new Date(); var expire = new Date(); expire.setDate(dataAtual.getDate() + 1); document.cookie = "NomeCookie=ValorCookie; expires=" + expire.toGMTString(); When accessing t...
asked by 23.06.2017 / 17:20
1
answer

Change src of an image

How to change the src of an image being passed with a php function to get the image directory     
asked by 15.06.2017 / 17:35
3
answers

Comparison with if

Personal what is wrong in the code, I made a function that calls a css if a value is greater than 5, the higher value works but the lower one would be 3 where it would appear another css does not work follow the code SetInterval(function () {...
asked by 14.06.2017 / 19:00
2
answers

criticize error when CEP is invalid (via CEP)

Hello I'm using the code below to get an address through the informed CEP. It works, however when typing an invalid zip code or 0000000, I get the {"erro":true} return. How can I turn this return into an alert with the code below:...
asked by 24.06.2017 / 02:27
3
answers

Loop is inside a function

I have a nav with 5 buttons, and a footer with the same amount, when clicking the footer buttons they serve as anchor for the page, but I need to compare with the nav items to be added to the class "Activate them ". Only returning me   ...
asked by 13.06.2017 / 19:24
2
answers

Modal ajax tracking mails

Is it possible to make a script that pulls the trace of some item on the post page? For example, within my site: link . There you have the link in the case for tracking PO117284423BR I would like to create a modal that when the link "PO117...
asked by 08.06.2017 / 16:20