Questions tagged as 'javascript'

1
answer

Validation of CNPJ in Javascript

I have a simple question. I want to validate the cnpj of an institution register. In this input is already placed the mask, in which the mask is in js. But I can not validate this field. I took a famous example of the net, but it is not working...
asked by 31.05.2016 / 20:01
1
answer

Send message and update div without reloading the page

Well folks, I'm developing a southbox and am here with a problem .. I when I type something in shoutbox and give enter or click on enviar it refresh on page .. I leave here what I already have .. INDEX.PHP /* PARTE DE CIMA D...
asked by 30.06.2015 / 22:26
3
answers

What is the best option to use in relation to performance

I need to make all products add up from the screen, but I have products that are no longer on the screen. So my question is: Will it be that if I hide only the products that are visible will it perform better? instead of giving .hide() to...
asked by 03.07.2015 / 16:15
3
answers

Exchanging link as input text

I need to create a input of text that as I enter a quantity it changes the link of a button, but only a part of the link. Ex :. I have this link: link I want that whenever the person places 1,2,3,4 ... in the input it changes the va...
asked by 08.07.2015 / 14:29
3
answers

How to fix this function, if I type something appears the same thing as when I do not type anything

<!DOCTYPE html> <html> <head> <title>Atividade 02</title> <meta charset="utf-8"> </head> <body> CPF <font color="red">*</font> <input type="text" name="CPF" id="CPF" size="15" onsubm...
asked by 14.07.2015 / 02:00
1
answer

Uncaught RangeError: Maximum call stack size exceeded

   Uncaught RangeError: Maximum call stack size exceeded function updateAnalysers(id) { var canvas = document.getElementById(id); canvasWidth = canvas.width; canvasHeight = canvas.height; analyserContext = canvas.getCont...
asked by 13.07.2015 / 19:07
4
answers

Receive input value in real time

Well, my question is the following, I have a form with 2 inputs , or people put 2 dates in each. If followed I have a javascript that calculates the difference between the 2 dates. I would like to know how I would do it so that without the p...
asked by 07.07.2015 / 18:34
2
answers

How to make setTimeout run "infinitely"

I need a function to run every 2 minutes. I found this link a solution for my need: Link The Code below, calls an alert after 5 seconds when the mouse is stopped. Note I put 5 seconds to save time on the test. <script type="te...
asked by 03.07.2015 / 16:26
1
answer

What the setCell command does in javascript

By the name implies that this command configures a cell in a table / grid. But I'm having trouble understanding its syntax mixed with asp . <%If col_cod <> "" Then %> oGrid.setCell(<%=linha%>,'<%=col_cod%>',co...
asked by 20.08.2015 / 13:32
3
answers

Change the content of the div without refreshing the page [duplicate]

I'm a newbie, take it easy with the answers. hahahaha I have a div in the middle of the page and want to change the description of it by clicking a button. I wanted to create about 5 pages inside the div, so to speak. I created two buttons,...
asked by 14.08.2015 / 22:04