Questions tagged as 'javascript'

1
answer

Difference setTimeout, setInterval, and setImmediate

What is the difference between setInterval , setTimeout and setImmediate in Node.JS? I know that setTimeout creates a single timer, like a delay, and setInterval creates a range. But what about setImmediat...
asked by 22.04.2018 / 15:47
2
answers

How to activate event by clicking anywhere on the screen?

I have a CPF validation and this "event" is activated when I click the "validate" button. I wanted this "event" to be activated when the user clicked off the input, as he typed the CPF and clicked and anywhere on the screen, then this validat...
asked by 20.04.2018 / 14:41
1
answer

Problem with my client using jquery

I have a very unusual and strange problem ... I am using the Jquery library, however, it is not being interpreted correctly, the problem is not in the code itself, ie when I do the same code without syntax error or semantics the code is not trig...
asked by 20.04.2018 / 19:20
1
answer

Function AngularJS is not respecting the condition!

I have this function, which gets two parameters, however, when I pass the different name, it falls into if in the same way. $scope.deleteCategory = function(id, nome) { if(nome == 'Despesas Administrativas' || 'Despesas com Empreg...
asked by 07.05.2018 / 15:26
2
answers

How to send the src value of an img tag to the value of a text field?

How do I send the src value of an img tag to the value of a text field? <script> // Inicia o Clipboard no elemento "button" function teste() { alert("t"); var src = $("#imagem").attr("src"); alert(src);...
asked by 07.05.2018 / 13:26
1
answer

Change "createTextNode" to insert in HTML?

Alright? I'm having a bit of a doubt as I'm trying to create a very simple BBCode system, but for visual reasons, I'm not using a normal textarea . I am using a div with the attribute editable content to be able to edit the text, but the qu...
asked by 07.05.2018 / 23:09
1
answer

Calculate and Decrease Values in Array

I'm trying to decrement and calculate values from an unsuccessful array. The decrementation works to a certain extent, then decrements different values from what is clicked on the checkbox and the calculation appears on the console as NaN....
asked by 19.03.2018 / 03:10
2
answers

Decimal places in JavaScript

What kind of variable can I use to generate the maximum number of decimal places in JavaScript? Eg: 1.9871975109731928479128471023789182479182471209381290481284 If possible, logical =)     
asked by 11.03.2018 / 20:32
1
answer

How to have a unique id and then retrieve this id in php page to write to the bank

Hello, I created these functions that automatically create new multiple-choice questions on my page. I can create as many questions as I want, and in these answers I can have as many answers as I want. I want to write these answers and questions...
asked by 12.03.2018 / 18:01
1
answer

Carousel - arrows as pagination

I'm working with the Owl Carousel v2.2.1 and need to display 3 images at a time. This is already possible using pagination, but I need the same event to be done using the arrows. Every time you click the arrow you should change the page (the n...
asked by 10.03.2018 / 16:39