Questions tagged as 'javascript'

1
answer

Get Off "Scroll" Slow and Automatic Page with JavaScript

I have a page that shows some information on a monitor that will not have human intervention (it will not have user manipulating the page), it will only be on display. But the content that is too large and need the page to go down by itself to s...
asked by 01.02.2018 / 20:45
1
answer

Doubt handling js values

I have the following inputs in the html: COD_01 VALOR_01 COD_02 VALOR_02 e asim por diante até.... COD_99 VALOR_99 The user will feed each COD and VALUE. I need to create a js for: 1- Somar todos os Valores, por COD. 2- Pre...
asked by 01.02.2018 / 19:18
1
answer

word-wrap: break-word; is not working vertically

See a working example in this jsfiddle The text: "text should be broken" it is not breaking and respecting the space of the td. Thank you.     
asked by 01.02.2018 / 14:47
2
answers

Call function after opening Modal

I have this Jquery code: <script> jQuery(document).ready(function(){ // Numero de click var totalClicks = 0; jQuery('#addpayment').submit(function(){ var dados = jQuery( this ).serialize(); // Verifica se o valor da variável...
asked by 06.03.2018 / 17:28
1
answer

Json Date / Date Return (1519339100637) /

Good evening, I'm working with Ajax to return a json that contains a data in Datetime format but I'm getting string /Date(1519339100637)/ . How can I convert to date and time format 23/02/2018 12:00:00: Ajax function: &...
asked by 24.02.2018 / 00:13
1
answer

Difference between function and anonymous function in JavaScript [duplicate]

I'm wondering what the difference between função and função anônima is, follow the code example of the two possibilities.    FUNCTION 1 titulo.addEventListener("click"), function(){ console.log("Olá"); }    FUNCTION 2...
asked by 26.02.2018 / 19:29
1
answer

How to make an each inside an append?

I am trying to create a Jquery plugin but I can not adapt a .each inside a .append, how can I use it to work inside .append? Here is my example below: var selectBox = $('.select__atual'); var selectOption = $('.select__opcoes__label');...
asked by 26.02.2018 / 15:37
1
answer

How to concatenate a javascript object to a post form?

I have an object JSON that I built at runtime, I need it to be sent to my servlet , along with the other form fields, via post, how do I do this? I researched a lot but nothing worked. function createJSON() { layoutColunas =...
asked by 08.02.2018 / 16:51
1
answer

Treat Action Return in JSon Format

Colleagues Devs, I have an application in C # and ASP.NET with an Action that returns an array in JSON. When I return only one string I get handle with javascript now, when I return an array I do not know how to handle it in javascript. Follo...
asked by 06.02.2018 / 11:20
1
answer

How are modifiers implemented in TypeScript?

TypeScript supports all JavaScript features (ECMAScript 6 itself), as well as modifiers such as private , protected and abstract . However, in ES6 there are no such modifiers. To "emulate" the modifier private you ca...
asked by 08.02.2018 / 04:39