Questions tagged as 'javascript'

2
answers

Is there a way to map () an array of objects in React?

I'm doing a project where I need several recipe cards that will contain: title and ingredients. These cards should be expandable (the user will see the title and when clicking, the ingredients will be shown) and to facilitate, I am using the Ui...
asked by 16.02.2018 / 23:39
1
answer

How to create an electron installer for windows?

Good afternoon. I'm working on a project using Electron to create desktop applications. I'm following this tutorial on how to create a windows installer: link However, running the command generates an error and I can not generate the install...
asked by 13.03.2018 / 19:52
1
answer

How to exponentially increase the speed of change of value of a variable? [closed]

I want to exponentially increase the speed of changing the value of a variable. I tried to do this, but it did not work out. When trying to do this, I used 2 setInterval, but it did not work. In the code below I tried to increase the speed in ch...
asked by 14.03.2018 / 04:51
0
answers

receive two values autocomplete and pass to input tipe = 'hidden'

How do I pass a 'ID - valor' value of a autocomplete jquey and show only the 'valor' in the input field and pass 'ID' to another input type hidden .    PHP if (isset($_GET['term'])){ $return_a...
asked by 14.03.2018 / 17:58
1
answer

Use Electron Resources Out of main.js

My question is this: Is it possible to call a dialog.showOpenWindow outside the main.js file? I would like to execute a function that when I click on a specific button in my BrowserWindow open the showOpenWindow and return the path of the specif...
asked by 08.03.2018 / 13:33
1
answer

Configure API for SQL Server database

I have an API that I used with MySQL, but I had to switch to SQL Server. Unfortunately I've never used SQL Server, I do not know if I need to download something to get it. The API was done in JS. The configuration of the sequelize of my API with...
asked by 08.03.2018 / 13:02
0
answers

How to check for existence of a certain array in another array?

At some point in my system, I need to consume a method that returns an array, which can contain arrays. I need to feed a second array with data contained in the main array . See example? arrayRetorno[0] = item[i].tasks[0].colleagueId;...
asked by 22.03.2018 / 20:05
1
answer

Go through a table and get data with javascript [closed]

I'm a newbie with Javascript and I need to walk through the rows of a table and if checkbox is checked, get the value of a column (ID) and store it in array .     
asked by 22.03.2018 / 15:04
0
answers

Create fields with ngFor

I want to do something where I can every time I click the button to make new fields. What I've done is this: <label for="">Contatos</label> <div *ngFor="let contato of contatos" class="row"> <div class="col-12 col-sm-...
asked by 15.02.2018 / 16:34
3
answers

Display Javascript variable content that has quotation marks

I have an application that ajax reads a MySQL database, which contains a normal (non-escaped) content with several words in double quotes, single or single quotes. This content goes to a variable, eg: conteúdo que está no banco de dados...=...
asked by 14.02.2018 / 20:30