Questions tagged as 'javascript'

1
answer

How to remove value after floating point

I have the code snippet exposed below: var calcularSoma = function (primeiroValor, segundoValor) { var soma = primeiroValor + segundoValor; if (soma < 10) { console.log(soma, "Unidades."); return soma; } else if (soma < 100) {...
asked by 07.08.2018 / 16:54
2
answers

Challenge create menu with ajax request ()

File json producto.json { "produto":[ {"categoria": "#home", "nome": "home"}, {"categoria": "#fotos", "nome": "fotos"}, {"categoria": "#contato", "nome": "contato"}, {"categoria": "#perfil", "nome": "perfil"...
asked by 07.08.2018 / 21:21
1
answer

Identification of application on the network

Hello, I'm creating a barcode reading system where I have an application on a device that serves as a camera, and sends that information to a web page on a PC. But I did create that page did a search on the local network of the user and found the...
asked by 09.08.2018 / 18:17
2
answers

How to format html tags with javascipt

How do I, when someone enters an html tag in my online editor, javascript set a color for that tag? An example would be: < html> //Essa tag teria sua cor mudada por uma função function Tag(){ //A função tag ao ser chamada iria setar u...
asked by 09.08.2018 / 16:02
0
answers

Can I assign the same URL to more than one controller?

I'm trying to use AJAX $.ajax({ url : urlN, // <<- "/log" type: "post", success : function(json) { console.log(json); document.getElementById('content').innerHTML = json; } setInterval(refreshDiv, 5000);...
asked by 09.08.2018 / 19:40
0
answers

When using async do not need to use callback?

I have the following function in nodeJs v10.6: #func-1 module.exports.funcOne = (event, context, callback) => { callback(null, { message: 'funcOne', event }); }; #func-2 module.exports.funcTwo = async (event, context) => { console...
asked by 03.08.2018 / 21:27
1
answer

Two Ajax requests in the same function

When loading a page, I have two Ajax requests in a sequence that populate two select's with the options that come from different tables in the database. But only the first one is executed, the second does not even call. I've followed debuggin...
asked by 02.08.2018 / 17:32
1
answer

Consumption of internet data using Vue.Js or similar

Good morning, I have an application in Vue, where the upper and lateral nav are static, and the content (body) is loaded according to the requests made in the nav links. The Vue greatly accelerates the use, charging only the center, but does thi...
asked by 03.08.2018 / 15:23
1
answer

Problem using toFixed to round value

I'm using the toFixed () function of javascript to display values with two decimal places ( toFixed (2) to display 2 digits after the decimal point). The problem occurs that I have two situations where the value has three digits after the...
asked by 23.08.2018 / 14:50
0
answers

Remove Shadow by Hovering the Highcharts Chart Column

I can not identify why this "shadow" is appearing, the risk when I move the mouse on the graph, this happens with all others that are 3D. Here is the code and image of what is happening: function geraColunasSimples(idChart, jsonCategories, yTi...
asked by 23.08.2018 / 16:04