Questions tagged as 'javascript'

1
answer

Jquery window.open in "success" in ajax is being blocked

I would like when saving an input and updating the div with the new information, in the return message "success" of ajax, also make the impression of the div. Example success : function(response){ $("#containerResultado").h...
asked by 06.06.2017 / 16:15
1
answer

Update data with Sound Alert

In this script down it keeps updating the div and showing a counter WhatIwantedisthatifthereisanychangeinthenumber,playingaSound"An Alarm" only I have no knowledge of javascript if someone can help me will help me a lot counter_mapa.php...
asked by 13.06.2017 / 03:54
1
answer

How to prefix value in input

I used Bootstrap to insert a typed http: // spam at the beginning of the input. But I would like to know how to leave the input with this value by default, and then the user only fills the site you want. <label for="name">SITE <...
asked by 06.06.2017 / 23:01
3
answers

Prevent redirection after submitting form

I'm a beginner in programming and I have a little problem here. I have already done a good search here in stackoverflow, both in Portuguese and in English, but I could not adpatar or put a solution in practice here. I apologize if the code does...
asked by 17.08.2017 / 04:11
1
answer

How to validate field when losing focus?

How should I call this PIS validation function in the input when I lose focus? <script language="javascript" type="text/javascript"> var ftap = "3298765432"; var total = 0; var i; var resto = 0; var numPIS = 0; v...
asked by 03.04.2017 / 14:10
1
answer

If it works but Else does not

So, the code below (it's complete in link ), the if it works but that else does not, what's wrong? I would like it to work like this here, in the input "NAME" by rolling the bar ( link ). When you input label appears and goes up...
asked by 29.03.2017 / 19:54
3
answers

How to add a number with a string

Well, I have the following code: <script type="text/javascript"> var mao1 = "goncalo1"; var mao2 = 1; var mao3 = mao1+mao2; window.alert(mao3); </script> What I wanted was for the var man3, to show goncalo2 and not goncalo11,...
asked by 27.03.2017 / 01:31
3
answers

Value of html text box to be received by javascript variable

Hello, I'm learning javascript and wanted to know how I do what is typed in the HTML text box that is printed on the screen in javascript document.write.     
asked by 08.03.2017 / 02:20
1
answer

Display and hide images with JavaScript

I need some help with the source code below: CSS : img { display: block; } Javascript : var total = 5; var numero = 1; function mostrar() { if (numero <= total) { var inicio = (numero - 1) * 1 + 1;...
asked by 17.02.2017 / 11:47
1
answer

Difference in whether or not to use the term function

I'm starting the study with Vue.js and I came across a situation within one of the options and I imagine it will serve other options that is the use of the term function, for example: var vm = new Vue({ methods : { /* assim */ en...
asked by 28.09.2017 / 13:54