Questions tagged as 'javascript'

3
answers

How to hide a div when showing another?

Hi, I'm good, I'm a rookie and I'm very, very sorry for this. I need that when I do onclick to show the "price2" I hide in turn the # price1. I work the actuator to show the "price2" but I can not get this to hide the "price1", I think I'm using...
asked by 07.04.2016 / 01:33
2
answers

Relationships in mongoose with personalized id

I have 2 models that I want to relate to be able to make queries in mongoose. Users Model import mongoose from 'mongoose' const Schema = mongoose.Schema let csvuaSchema = new Schema({ codigo: { type: 'String' }, georeferencia: { type:...
asked by 09.12.2018 / 22:32
2
answers

Read JSON from PHP with Javascript

I have a problem to find out how to put a Json in a cycle to read all the data of the array and generate variables with JS. In this way I create the Json arrangement function info(){ global $conn; //Query a seleccionar en la base d...
asked by 12.12.2018 / 16:01
1
answer

Differences and advantages: Set and Map against Array and Object

Reading about ES6 and its characteristics, I wonder about: What is the advantage of Map against an Object ? What is the advantage of Set against an Array ? I understand that both are for data collections, but why not use the primi...
asked by 10.12.2018 / 22:31
2
answers

Manage function that may or may not return a promise [closed]

I have a function to which I send some parameters, and depending on those parameters makes a query in a BD or not. The issue is that I need that if the query is made in the database the application waits for the query to finish to continue w...
asked by 10.12.2018 / 22:57
1
answer

Problem with the datatables cdn

Good night I have a problem, I am trying to use the cdn of datatables and when I want to make a table I do not load the page and search functions in the datatable, and I have no idea what the problem is in this format: That's how it should...
asked by 13.12.2018 / 03:45
2
answers

How to set individual search engine in table column with datatable

Friends I am trying to add an individual search engine to certain columns of my table, for this I use DataTables.js, which works well for me and everything, but the point is that it has to be implemented in three columns in specific two search e...
asked by 12.12.2018 / 19:34
2
answers

Validate fields with Javascript

I am working on a reservation system in which when a customer clicks on the type of payment without choosing the date, the input that defines día and valor is completed only with NaN . I do not know how to make it blank and m...
asked by 19.12.2018 / 14:16
2
answers

I get error in tooltip

error in tooltip, why? Do I need popers? $(function () { $('[data-toggle="tooltip"]').tooltip() }) <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstra...
asked by 20.12.2018 / 04:09
3
answers

My Router does not work with webpack2

Passing my code to ES6 using webpack2 gives me this error: Warning: React.createElement: type is invalid - expected to string (for built-in components) or a class / function (for composite components) but got: undefined. You likely forgot to...
asked by 23.02.2017 / 14:04