Questions tagged as 'javascript'

1
answer

How to insert an array into a text area?

How to insert an array into a text area? var itens = new Array(); var index = 0; function adicionaItem(item, quantidade) { itens[index] = {nomeItem : item, quantidade: quantidade}; index++; } function concluirCompra() { document.get...
asked by 07.04.2014 / 00:59
2
answers

How to make null directives AngularJS?

The idea is to make when calling a unique directive, it render the directive corresponding to the preconfigured CSS framework. For this I have a global variable var window.styleSource = "bootstrap"; (after which I can set whatever valu...
asked by 15.04.2014 / 16:00
2
answers

How to get (in object) Facebook data?

I'm creating a Feed (dynamic content list) with the contents of a Facebook group's wall. I know there are some features that Facebook itself provides, such as the Social Plugin - Like Box . After a few tests, I saw some difficulties handling...
asked by 27.02.2014 / 19:35
1
answer

Receive array values from console

I'm starting the node studies and I decided to do an exercise in which I need to receive a value n through the node console, which will be the number of elements in an array and receive n elements through the node console. The problem is that I...
asked by 01.01.2019 / 23:17
1
answer

NaN of a csv file in d3.js

var margin = {top: 20, right: 10, bottom: 100, left: 40}; var width = 700 - margin.right - margin.left; var height = 500 - margin.top - margin.bottom; // o g para agrupar objetos juntos, agrupar as barras...
asked by 04.01.2019 / 21:29
3
answers

Validate javascript line

I'm trying to do a row-by-row validation on a table as follows: If the product is marked as yes on one vendor, it can not be marked for another vendor. Can someone help me please? Follow template ... $("button").click(function() { $('#s...
asked by 26.12.2018 / 19:11
2
answers

How to make a Mask in pure JavaScript?

I need to create a Masj on phone contact forms that shows the following result on the (00) 0 0000 - 0000 form in JavaScript without the use of Jquery. <div class="row clearfix"> <div class="col-lg-2 col-md-2 col-sm-...
asked by 05.12.2018 / 14:58
3
answers

My JavaScript to change visibility does not work

I wrote a form with these elements: <div> <label for="radio_pessoa_fisica" id="label_cpf_req"> <input name="pessoa" id="radio_pessoa_fisica" type="radio" value="fisica" required> Pessoa Física </lab...
asked by 27.11.2018 / 20:22
1
answer

Problem removing all attributes of an object that contains null values

Context I'm inside an application in NodeJS, where I have a fairly large object that has several attributes and also attributes objects that have children, and I have a situation where I can not keep the attributes containing null values, so...
asked by 28.11.2018 / 23:26
1
answer

Add automatic content exchange

I need to find a way to exchange the data-id and data-content information to .number and .passo automatically, without having to depend on hover (). I need to keep both the automatic form of this exchange as a presentation and hover () if the...
asked by 30.05.2014 / 05:49