Questions tagged as 'javascript'

1
answer

How do I expect a javascript function inside another?

I have the hypothetical situation: function fTeste2(valor) { setTimeout(function() { alert("Hello"); }, 3000); return valor + 5; } function fTeste1(valor) { return fTeste2(valor); } alert(fTeste1(10)); Noti...
asked by 08.02.2017 / 17:02
1
answer

Validate PivotTable Summaries in JavaScript

I have a question about validating sums of PivotTables. I have 2 inputs one with the value with iva and another of the value without VAT. I have a PivotTable where I enter billing periods. When you put the total value with viva it has to add up...
asked by 06.03.2017 / 12:38
1
answer

Why does not the event end?

I created a code with javascript, but it did not work very well. I'm creating a page loading, but it does not load the load bar and the event I scheduled never finishes. It was in the infinite loop: var progresso = new Number(); var maxim...
asked by 18.02.2017 / 16:45
1
answer

Disregard words in the input

I would like to know how to override / disregard certain words placed by users in the input. I have an input where the person should send me the URL of a website, in case they should send the url as site.com/image because I have a script that...
asked by 20.02.2017 / 05:11
1
answer

Improve writing resolution with HTML5 Canvas

How to increase the resolution of the stroke when drawing with Canvas on the Touch Device. I can increase the thickness of the trace, the color of the same but when I make a circle leaves some parts straight or square. var canvasWidth = 30...
asked by 06.03.2017 / 13:22
1
answer

Doughnut Kind chart with multiple series

I'm using Angular Charts to plot a Donut chart; my code is structured as follows: $scope.data = [ ['abc', 'def'], ['fgh', 'ijk'], ]; $scope.labels = ['Ask', 'Bid']; $socpe.series = ['Volume Ask', 'Volume Bid']; $scope.color = ['#66ff33', '#fff...
asked by 26.12.2016 / 13:08
1
answer

In JS label.removeClass (); Will you do what I want?

Js is a great ally, but for those who know better, I'm having a hard time in a simple system that is a cpf validation, I'd like it to be worth js to remove the label with the invalid class and be invalid it removes the label with the valid class...
asked by 09.07.2016 / 12:54
1
answer

Redirect form javascript

I have this JS code that does validation, sends and saves in the BD the files of the form. I need that after sending and saving in bd, after the alert, the user will be redirected to another page. <script> var form = document.getE...
asked by 15.12.2016 / 15:48
1
answer

How do you have at most one selected leader in all selects?

How do I when I select the Leader option , javascript does not allow another function to be selected (multiselect)? The scenario is as follows: Each select represents the roles of each user. The user who is selected as Leader , can n...
asked by 30.11.2016 / 03:45
1
answer

Validate google api key

I'm making an application, where I'll have to validate a google maps API key. The problem is that I do not know what patterns it follows: AIzaSyA-OlPHUh2W7LUZXVjQjjxQ8fdCWdAASmc Here you can see that they are uppercase and lowercase, numbe...
asked by 20.07.2016 / 15:09