Questions tagged as 'javascript'

1
answer

Validate numbers only

I need to validate a string using Expressão Regular , it can only contain numbers. So I tried to use the following expression /[0-9]/ , but if the string contains a character and a number is considered valid. er =...
asked by 14.01.2018 / 19:26
1
answer

Shortcut key for PHP and Mysql pagination

I have a pagination made in PHP and Mysql: $sqlVisualizarContar = mysqli_query($this->conexao,"SELECT * FROM tabela;"); $maximo = 10; if($pagina >= 1){ $inicio = $pagina * $maximo; $totalPag = mysqli_num_rows($sqlVisualizarCont...
asked by 23.01.2018 / 12:15
1
answer

A transition or effect

Would anyone have any idea of any transition or effect of some image arising from left to right in a sense of being passing in a straight line?     
asked by 21.01.2018 / 04:45
1
answer

How to traverse an object and filter this object?

I'm trying to navigate an object and after that, filter the same. I'm using this code, but it's not working. Can anyone help me and if possible explain the code? const objeto = { idade: 20, idade:20, idade:21}; const funcao =...
asked by 22.01.2018 / 19:25
3
answers

external HTML in div without server

I own an Index.html page is a series of other html pages. I need to make clicking on a link the specific document appear in a div. Detail, I can not use PHP include because I can not mount a server for different reasons. I can not use the load b...
asked by 19.04.2017 / 05:04
2
answers

How to start Accordion closed

Hello, I have an accordion on my page, it works perfectly, but when the page starts it is already open. What I want is for it to come closed, does it have? HTML: <div class="bs-example"> <div class="panel-group" id="accordion"&g...
asked by 17.04.2017 / 16:22
3
answers

how can I make a div hide on the side and when clicked appears on the screen?

How can I make the div hide on the side of the screen? notice the side menu of this site link tried it in a way but it was not someone knows a means? I put the display none and in js I put block, however I always have to go back to none then i...
asked by 19.04.2017 / 15:51
2
answers

AJAX javascript, PHP post does not work [closed]

Hello, I have a javaScript code to send data using AJAX to a PHP page, my problem is that the POST is going empty for the page I am calling. This only happens when I call the JavaScript (AJAX) function that does the request, when I call the PHP...
asked by 15.04.2017 / 15:57
2
answers

How to disable a function already enabled, or vice versa?

How can I disable a function? For example: in this case I'm activating a function (zoom in an image) with two clicks. I want to disable this function (zooming) when I move the mouse over the image. The event I already know ( onmouseout...
asked by 17.04.2017 / 16:53
3
answers

numeric validation in javascript [duplicate]

I'm trying to validate a form. the user can only instroduz numerals values. I did the following but it is not working function ValidateContactForm() { var year = document.ContactForm.year; if (year.value == "") { isNaN( document.m...
asked by 20.04.2017 / 21:03