Questions tagged as 'javascript'

3
answers

Difference between attr = val, attr="val" and attr = 'val' in JavaScript?

Is there any difference in using the selector in the following ways, or one that is "correct"? [name="val"] [name='val'] [name=val]     
asked by 06.03.2018 / 19:01
6
answers

Regular expression to accept numbers and letters, regardless of sequence

I have the following problem, I need to validate a password field with at least 8 characters, being at least 2 numbers and the rest letters, they can be in any position. 12abcdef abcdef12 The expression I made works in the cases above: f...
asked by 14.07.2017 / 19:54
2
answers

How to pass parameters to an Array in javascript?

How can I dynamically pass information to array below? Example: I have a list of 40 coordinates in a text file, for example, or in a Access database, how do I pass these coordinates to the variable locations below? > v...
asked by 09.11.2016 / 01:11
3
answers

Is there any way to make a default browser tooltip appear without placing the text in the title tag and without the tooltip plug-in?

I'm asking this because the application is almost ready and used a plugin that uses the title tag. This plugin causes a popup (in this case a confirmation box) to be clicked on the element, with a title bar using the title tag text. But when...
asked by 02.01.2014 / 16:15
4
answers

Difficulty in storing property in object in Javascript

I'm having a difficulty (which is probably pretty silly) in storing a value in a property of an object in Javascript. I have done something similar recently using this.propriedade = valor within the "constructor" function and I had no pro...
asked by 31.01.2014 / 19:47
1
answer

Remote REST WebService in PHP receiving JSON via POST with problems

I have the following situation ... A pure javascript client application that runs with node.js, where I send via a JSON post, as follows: doLoad = function (livrosList){ var xmlhttp = new XMLHttpRequest(); x...
asked by 15.01.2015 / 00:01
2
answers

Use global variable in more than one js file

I have the file GeraGridDados.js and in this file I created a global variable and a function. nomeTela = ""; function redirecionaTela() { //redireciona para tela que chamou a tela de Dados. location.href = nomeTela + ".html"; };...
asked by 08.12.2014 / 14:15
3
answers

Checkbox style with subway style

I need to change my checkbox so that it is identical to the following image: It should look like this when it is marked, when it is not marked, it removes the entire border and appears at the end. I did not insert code because I coul...
asked by 13.08.2015 / 19:32
3
answers

How to call a JS variable for an HTML h1

I have this little FIDDLE to exemplify my problem. HTML <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li>5</li> </ul&...
asked by 24.04.2015 / 13:17
6
answers

Same number of characters in the password after md5

I'm doing a process of opening a modal and registering a user. The user's password is changed to md5() ; After this the password gets with 32 caracteres . When the user is going to load the user data to do an update. If the...
asked by 18.11.2015 / 13:50