Questions tagged as 'javascript'

1
answer

Error returning HashMap for JavaScript

When returning the hashmap to javascript I get the following error:    The resource identified by this request is only capable of generating   responses with characteristics not acceptable according to the request   "accept" headers. Call...
asked by 23.06.2016 / 03:15
1
answer

JavaScript - Execute Data from an array always in the same order

Good / Good Day / Afternoon / Evening, I would like JavaScript help, how do I execute data from an array in the same order, for example: var teste = ["valor1", "valor2"]; document.getElementById("id").innerHTML = As I do when I click a but...
asked by 03.07.2016 / 22:59
1
answer

Missing variable value (JavaScript)

I have this class, but whenever I instantiate, and access the value of fb_firstName is 'undefined'. What am I doing wrong? In the set method, setFb_firstName(firstName) , the value is correct, but at the time of returning with...
asked by 10.05.2016 / 00:09
1
answer

view HTML element placed on page using DOM - Javascript

Class Piso and class Consola /** * Classe Piso * contem um numero piso */ function Piso(id) { this.id = id; } /** * Classe Consola * contem uma lista de pisos */ function Consola(nome) { this.nome = nome; this....
asked by 06.05.2016 / 18:59
1
answer

Get selection event + selection movement - Jquery

I would like to know how to get the event with Jquery from text selection + drag. An example of what I'm saying is to select a text and with the left mouse button pressed, move the text sideways. How do I get this event? Let's say: if cert...
asked by 05.05.2016 / 23:49
2
answers

How can I send information from my input automatically by javascript?

How can I submit information from my <input /> automatically? I wanted this automatic process to be controlled by the input field size. For example, when the value reaches 8 characters, it automatically sends and moves to another...
asked by 04.05.2016 / 13:10
1
answer

Pin menu to the top of the page when scrolling down

I have a div with height 100% and then a navbar . I would like that when the page was down the navbar would stick to the top of the page. CSS ul.navbar { list-style-type: none; margin: 0; padding: 0; overflow: hidden;...
asked by 29.01.2017 / 03:58
1
answer

How to get specific information inside a Json with Node.JS?

{ "pair": "BTCBRL", "bids": [ [2257.89, 0.20752212, 90852987], [2257.88, 1.01201126, 90800395], [2249.98, 0.05052466, 90806289] ], "asks": [ [2272.14, 2.3648572, 90803493], [2279.63, 0.08722052, 90840584], [2279.75, 0.0411...
asked by 31.01.2017 / 16:50
1
answer

Confirmation message YES / NO

As a PO request, using an attribute to copy the cell number to the whatsapp field, displaying a message to the user, default is OK and Cancelar , but I would like the button names to be Sim and Não , how can I change th...
asked by 22.01.2017 / 18:01
1
answer

FormData is putting the string "null" for null values

I'm using a library called ngUpload . In it we have the option to send the data along with the upload of a certain file. I'm doing this upload as follows: Upload.upload({ url: '/orcamento/ajax-criar', data: {cliente: $scope.c...
asked by 25.01.2017 / 17:16