Questions tagged as 'javascript'

2
answers

Static list with search using JavaScript instead of PHP

In my work, I created pages as a static phone book to make it easier to search for them, but since there are many names, I would like to create a search field, but it is not possible to do this without dynamic code and database. Is it possible t...
asked by 08.03.2014 / 13:01
3
answers

How to remove duplicate values from a multidimensional array in javascript?

Good evening, I need to remove duplicate results in an array with other nested arrays. I have the following variable: var dados = [ ['maria', 'telefone', '324-5678', true], ['maria', 'telefone', '91234-5555', true], ['maria', 'tel...
asked by 21.05.2018 / 04:57
3
answers

How does date comparison using .toLocaleDateString ();

It's a question I have for some time and I can not find an answer anywhere on the internet (I looked here and SOen). Given the following code: var hoje = new Date(2018, 08, 07).toLocaleDateString(); var dataQualquer = '08/05/2018'; if(dataQ...
asked by 07.08.2018 / 21:56
3
answers

Show a number in 2 decimal places

How do I calculate a input (integer value) and a (real) currency variable in javascript ? The result is 6.7 and not 6.70 (I have tried many examples here in the forum, but nothing yet). function Calcular() { var valor1 =...
asked by 08.12.2017 / 12:27
2
answers

Is it possible to make a file upload system without using php, just with jquery?

I have already researched several websites but I never knew if it was even possible, can anyone help me?     
asked by 27.02.2014 / 00:56
3
answers

Apply effect when changing value of an input

I need a help with an effect I wanted to do, but I'm not getting it. I have an input of type range that goes from 1 to 10 , being its default value 5 : <input class="i1" type="range" min="1" max="10" value="5"> W...
asked by 09.01.2018 / 22:48
4
answers

popup open only once after being closed, even after reloading page

I would like to know how to create one of those popup which usually appear in large (not flash) portals, but with div and javascript pure, script detect this and it will not open again, even after reloading the page or...
asked by 11.04.2014 / 15:28
2
answers

Text that is written slowly, erases and writes another

I would like the script to be a text that is being written slowly. I found it easily here in SOpt, the link is this: Text that is typed in the Few? However, I would like an increment that I did not find. Next: After you finish writing the t...
asked by 13.02.2016 / 19:44
2
answers

Not being able to call the same variable out of function

I'm not able to call my variable pt1 out of function(data) and within function getImageItem . Being function(data) is within function getImageItem . function getImageItem() { var item = ""; jQuery.ajax(...
asked by 07.01.2016 / 16:41
3
answers

Calculate mean only in the fields typed

Hello, I am programming a system in which it calculates the average of some fields. The point is that not always all values will be reported and the average should calculate the fields in which there are values, ie the calculation of the mean wi...
asked by 20.04.2016 / 14:47