Questions tagged as 'javascript'

3
answers

Disable input text when clicking on another input text

Good afternoon, I have the two inputs below: <input type="text" id="txtEntrada" name="entrada" onkeyup="somenteNumeros(this);" > <input type="text" id="txtSaida" name="saida" onkeyup="somenteNumeros(this);"> I would like...
asked by 02.12.2015 / 19:24
2
answers

What is the difference between the string.slice () method and the string.substring () method?

We know that the string.slice() method and the string.substring() method allow you to extract a part of a string and create a new string as a result (without modifying the original string). What differentiates one method from the o...
asked by 19.11.2018 / 22:55
1
answer

JavaScript alert Does not work in Firefox and Chrome

I'm trying to generate a wrong password alert in JavaScript. It is for a web application that works in .NET. This alert works in IE, but we're porting the system and wanted it to work in both IE and Firefox and Chrome. ClientScript.RegisterSta...
asked by 18.10.2017 / 18:28
1
answer

Bind by position in SQL Server using Node JS (MSSQL)

I would like to know if you can bind the parameters by position instead of the name using mssql in NodeJS. Ex: //Por nome return pool.request() .input('input_parameter1', sql.Int, 10) .input('input_parameter2', sql.Int, 20) .query('select *...
asked by 01.11.2017 / 13:55
1
answer

Go through a method on all routes of all http methods except two

Basically I want to make all routes that come from any http method (get, post, put, ...) first pass by a method that will check if the user is authenticated, but this method should not be called when the user will authenticate (method POST...
asked by 02.06.2018 / 19:19
1
answer

Field Phone Validation

Personal I need your help. I have a phone masquerade, which validates the fields 00000 11111 2222 3333 in sequence. $('body').on('focus', '.celular', function () { var maskBehavior = function (val) { return val.replace(...
asked by 25.04.2018 / 15:17
1
answer

Take cover Facebook API SDK JS

I'm trying to get the user's Facebook cover logged in, but I'm not succeeding. FB.login(function(response){ if(response.authResponse){ FB.api('/me', function(fb){ var email = fb.email; var nasc = fb.birthday; v...
asked by 26.06.2015 / 19:15
5
answers

Hierarchy between CSS styles

I am studying some more efficient ways to stylize an application using themes. My idea would be to use something like this: <div class='tema-1'> <button class='btn btn-primary'>botão principal</button> </div> .te...
asked by 29.06.2015 / 22:20
1
answer

Closure Compiler JS - CSS Transform into a bulk process

Google has two tools for compilar/minificar optimizing JS and CSS files, Closure Compiler JS and Closure Compiler CSS . To run the build process I can do the following: java -jar compiler.jar --js hello.js --js_outp...
asked by 07.07.2015 / 15:52
2
answers

Change in css only in iOS

I need to make a css change only on iOS, I've used if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) {}  But it did not work. The code I need to change is this one. .sdn-music-player>.yt-wrap>iframe { left: -22px;...
asked by 26.08.2015 / 16:55