Questions tagged as 'javascript'

2
answers

Play alert sound after bank query (PHP + MYSQL)

I need an alert sound to be played after a query on the bank ... Logical example: NUM_LINHAS = NUMBER OF TABLE LINES SE (NUM_LINHAS > 0) { play (); } My javaScript function that plays sound: <audio id="audio"> &...
asked by 16.07.2015 / 20:00
3
answers

How do I get the column number of the table in which an input I'm writing is?

I have text inputs on cells in a table. <table> <tr> <td>Bola</td> <td>Casa</td> <td>Arvore</td> </tr> <tr> <td><input type="text"...
asked by 20.08.2015 / 17:18
1
answer

Function JS does not perform calculation

I created a form that is added to the page with a button. I used JS to create the form to be added. The problem is that I have two fields one of value and another of hours, to count the value of the time worked. Then I applied to the input that...
asked by 11.08.2015 / 15:52
1
answer

Site load progress system

Some sites like Walking Dead and YouTube has a system that appears above when the page is loading and an image appears in GIF or CSS3 by flipping on the side or a progress bar. What is the name of this system or how can I do it? I've done...
asked by 08.04.2014 / 04:10
2
answers

Format mask for CNPJ

I need to format a mask for CNPJ. Until then it is done, but the company default is to format with space instead of point. This is the code I am using. valorDoTextBox = valorDoTextBox.replace(/^(\d{2})\.(\d{3})(\d)/, "$1.$2.$3") Someone...
asked by 30.07.2015 / 21:15
2
answers

Is it possible to have more than one CSS rule for an "img" in a "div"?

How to apply two (or more) CSS rules to elements img of within a div ? I use the TinyMCE editor and when I send an image to post or messages (pms) I have to be in a specific measure for each thing, otherwise the images "pop" the...
asked by 06.05.2014 / 02:34
1
answer

Syntax TypeScript

I'm studying TypeScript but I do not understand the meaning of this example: interface Person { firstname: string; lastname: string; } function greeter(person : Person) { return "Hello, " + person.firstname + " " + person.lastname...
asked by 31.03.2014 / 15:56
1
answer

Click a button through Class

I have the following button: <button class="btn btn-danger btn-lg btn-block betButton">Submit</button> And I would like to do a click on it through an event in javascript, but that's what to give me the following error: Unca...
asked by 25.05.2016 / 17:58
1
answer

Open a div according to your ID

I have a menu that, when right-clicking, it opens in DIV . Everything happens inside a tr (line) of a table . My problem is the following , I have a table with several tr , and each of them gets a ID . A...
asked by 13.04.2016 / 13:51
2
answers

How to undo the mouse scroll (zoom) action on an Iframe in google map

How to undo the mouse scroll action on google map in this Iframe? Is it possible to do this directly in this code or do I have to use Java Script? If you have to use js, how do I get this Iframe to load only after all other files? <...
asked by 20.04.2016 / 14:57