Questions tagged as 'javascript'

2
answers

Click detection and value collection

I'm developing a basic calculator to learn a little more javascript, but right from the start came the doubt. How do I go through all the li's and get their values individually inside the array, how do I detect the click on a particular li and g...
asked by 10.04.2017 / 22:53
3
answers

How to replace the extension but remain the title

I have a folder, which contains several videos with different names and different formats: link link link link And so on ... How do I give two download options to visitors. I have to change one of them. See: func...
asked by 07.04.2017 / 20:27
2
answers

How do I resolve the "Notice: Trying to get property of non-object in" error?

I have an administrative panel and in the page of edit the user I receive the data by the form and do the update in the table so that always returns the message of    error Notice: Trying to get property of non-object in C: \ wamp64 \ www \ s...
asked by 27.03.2017 / 01:24
2
answers

Change Text Color in Jquery

Expensive; I have an html page that brings three information from the Mysql Database ( HIGH, Medium and Low). I just wanted the word HIGH was in red, Medium in Orange and Low in Blue. I tried to do via PHP with Swicth Case, but without succe...
asked by 30.03.2017 / 21:47
2
answers

I can not break the line using JavaScript

Good morning, I'm having some difficulty trying to break a line using javascript's [b] \ n [/ b]. The code is working perfectly, what happens is that at the time of displaying, it looks something like this: My nick: Vinicius How I discovere...
asked by 27.08.2016 / 17:33
2
answers

pause page and resume after user confirmation

I have the following structure in php: <?php // Verifica se cancela o cadastro if ((!empty($action)) and ($action == "cancelar")) { ?> <script>...
asked by 01.09.2016 / 14:10
2
answers

How to create an array from text strings in a string?

Can someone help me with some method, function, or whatever, to make a string become an array made up of pieces of the same string example: var string = "stackoverflow"; var array = []; console.log(array) // ['stack'], ['over'], ['flow'] an...
asked by 27.10.2017 / 18:44
1
answer

Uncaught ReferenceError: $ is not defined in shopping cart

Why does the Uncaught ReferenceError: $ is not defined error occur in the code below? $(function funcao(){ $(document).on('keydown', '#busca', function(){ console.log('I\'m working'); }); }); HTML                      ...
asked by 28.12.2016 / 03:06
2
answers

Customize input range for progress bar?

Custom progress bar for a video player range , someone can give me some tips, thank you. <input type="range" id="progress-bar" min="1" max="100" step="0.1" value="0"/>     
asked by 24.12.2016 / 18:31
4
answers

Countdown in JS - How to insert a "zero" in front of numbers smaller than 9?

I found a very simple and functional script to do countdown, but it has a problem; when the counter reaches 9, it no longer has two characters, something that ends up spoiling quite the alignment I had to do to structure the CSS. Does anyone kno...
asked by 01.11.2017 / 13:30