Questions tagged as 'javascript'

2
answers

How to make a progress bar with steps?

How could I make a progress bar of steps using html5, css3 and js? An example to make clear what I need to do: I have a preference for zero, but is there a library ready for this?     
asked by 14.08.2015 / 17:45
1
answer

How to send data from AngularJS to an ASP.NET MVC backend?

What would be the best and simplest alternative? I have the Web Api: using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; using Generico.Dominio; using Generico.A...
asked by 04.01.2016 / 02:12
1
answer

Check if a div variant exists

I have several divs with the class prefix "webserver_ [..]" and I would like to check if any div with the prefix "webserver_ [..]" exists with jQuery only,     
asked by 11.01.2015 / 00:26
1
answer

Sent parameters to another function using object or hash is a good practice?

Exemplo: function atualizar(dados, events) { //faz qualquer tratamento dos valores var hash = { novoValor: dados, outroValor: event }; // primeira opção return customize(dados, even...
asked by 29.01.2015 / 17:04
1
answer

Private / Protected JS / jQuery Property

Is it possible to make an object in js / jQuery where it is only visible using the method, for example get / set? An example of an object: If I give a console.log(pessoa.documeto) , it will display the values, but what I wanted to see i...
asked by 05.11.2014 / 19:28
2
answers

Get values with names in JSON

I have this following JSON : {"nome_rede":"lucasl","nome":"Lucas Lima","imagem":"http:\/\/intranet.supersoft.com.br\/novo\/usuarios\/fotos\/lucasl.jpg"} How do I get it using AJAX? So far my code is like this, it's not catching any...
asked by 14.11.2014 / 15:08
2
answers

Function in mouseover event does not work in Firefox

I have a function in JavaScript that is activated through the onmouseover event in a table with records, the field changes color when I move the mouse, so alright the problem is that it only works in IE browsers and google chrome, already...
asked by 28.01.2015 / 12:54
1
answer

Is it possible to assign a native function to a variable?

A hypothetical example ... let _ = document.querySelector; _(".hello").style.color = 'blue'; <div class="hello">Hello world!</div>     
asked by 11.09.2018 / 21:18
1
answer

How to calculate currency appearing decimal places in JS?

I have a dynamic calculation to do, without having to click buttons. I even managed to, but the part I do not know is to make them appear as decimal places, since we're talking about currency. function multiplica() { numer1 = parseInt(...
asked by 22.01.2016 / 01:51
2
answers

How to copy an html block when clicking a link / button?

Today I and a friend think of developing a system for resumes registration, but I need to click a link to add another 1 block of inputs each time it is clicked. I tried searching, and found no nice fonts, ie I did not know how to search....
asked by 03.03.2016 / 01:23