Questions tagged as 'javascript'

1
answer

Combobox brings only one result of the Mysql table (NodeJS + JavaScript)

I am able to bring in only a value in the combobox that is in the table of mysql, I need to be listed both items in the same combobox. It is appearing one in a combobox and the other just below. <div class="container"> <% if(busca...
asked by 29.04.2018 / 19:32
1
answer

Add days to current date

I need to get the current date and add days according to the selected function calcular(){ var valor1 = parseInt(document.getElementById('dias1').value); var valor2 = parseInt(document.getElementById('dias2').value); var val...
asked by 18.05.2018 / 21:58
1
answer

What is $$ hasKey in array items?

I noticed that for some reason, a property called $$ hasKey has been added to the items in my array. Each item has this property with different values. Example: [0: {$$hasKey: 'Object1', uf: 'ES'}, 1: {$$hasKey: 'Object2', uf: '...
asked by 04.05.2018 / 15:39
1
answer

Success message when registering in DB

The script below worked with the older version of js and Bootstrap, but after I started using the latest one it stopped ... I use it to return the form message! If someone can help me, I understand little of json and js ... // Quando carregado...
asked by 04.05.2018 / 14:42
1
answer

Why does my array return an undefined

I have this code, but I want to access a attribute of an object that is within an array , but is returning undefined obj1 = { nome : 'name', array : [], funcao : function(element){this.array.push(element)}, getArra...
asked by 10.04.2018 / 23:37
1
answer

problem of event blur with submit button

Good afternoon, I have a form, it has a text field that triggers the event .blur that takes the name entered and returns an id with ajax, takes the id saved in another input hidden, the problem is that the event only blur is triggered if I click...
asked by 11.04.2018 / 21:13
1
answer

Reinserting elements in another part of Body, html and Javascript

I'm trying to store in a var, and then reinsert in body 3 elements of type " p ". <body> <p> Um</p> <p> Dois </p> <p> Tres </p> .... When you do this: <script> var parag = document.quer...
asked by 11.04.2018 / 14:47
1
answer

Objects with javascript

How do I access the data from this Json file. For example return the name: { "potions": { "1": { "id": 1, "name": "Aging Potion", "image": "aging-potion.png", "price": 29.99, "effect": "Causes the drinker to...
asked by 10.04.2018 / 23:13
2
answers

JQuery - Identify automatic text

I'm using JQuery to identify when the text box is text in the text box, like this: CSS: .inputtext { border: 1px solid lightgrey; margin: 0; margin-top: 11pt; width: 100%; } .inputtext:focus { border: 1px solid gree...
asked by 08.04.2018 / 17:04
1
answer

PouchDb Replication Failed for CouchDb

Scenario I have the following code.: ['tableA', 'tableB', 'tableC'].forEach(name => { let local = new PouchDB(name, { auto_compaction: true }) let server = new PouchDB(serverUrl + name) var filtro = { include_docs: tru...
asked by 06.04.2018 / 17:10