Questions tagged as 'javascript'

2
answers

Do not call the function

I intend to do a record deletion from a table with php and javascript, but when calling the function that the Delete does, it does not do anything. With this code I call the function <?php if (isset($_POST["delete-contrato-select"])) {...
asked by 22.10.2018 / 15:16
1
answer

Avoid the execution of an event listener

I have a Form that validates a submit in wordpress. The following code is in a Wordpress Template and I want the event Listener Submit not to run, how can I prevent it from running? To explain myself better, when you click on the button type sub...
asked by 14.09.2018 / 23:09
0
answers

DataTable filters by date

I'm trying to use filters by date. I have found several examples, but in one of them I am blocked because it puts the date and takes an example if I select 5 de mayo de 2018 begins to show me the data from 6. The other thing is that...
asked by 18.09.2018 / 15:02
1
answer

Module connect-flash does not work

How about? I am working on a project which I need to pass messages from the server to the client, and I have decided to use the Connect-Flash module. But when the message is passed, the client does not show it. (I'm using the EJS template engine...
asked by 16.09.2018 / 20:11
0
answers

Write realtime table event snap with FuntionsCloud in Firebase

I have an instance called AP which I want to create a function that when a new data is added that data is added another instance in the same database called SA I tried unsuccessfully in the following way with the event onCreate...
asked by 08.09.2018 / 15:41
1
answer

How can I do a find to search on an ObjectID in mongoose?

For example I have two models in mongoose: var Persona = { nombre: "Luis", carros:{ type: Schema.ObjectId, ref:'Carro' }, apellidos:"Colx Redex" } var Carro = { modelo:"FX-200", velocidad:"300km/h", marca:"Nissan" }...
asked by 08.09.2018 / 20:15
0
answers

Parsing error: Unexpected token = In Firebase

I'm trying to deploy an index.js file in Firebase but I'm getting this error:    129: 41 error Parsing error: Unexpected token = > This is my code : const callSendAPI = async (messageData) => { const url = "https://graph.facebook...
asked by 06.09.2018 / 17:40
1
answer

Get the last deselected value of a select multiple with JQuery [duplicate]

I have the following multi select: <select multiple="multiple" id="select_empresas" name="my-select[]"> <option value='elem_1'>elem 1</option> <option value='elem_2'>elem 2</option> <option...
asked by 06.09.2018 / 12:45
1
answer

I try to get the coordinates of an address array [duplicated]

The first console log shows the correct information, but the second appears as undefined and I can not find the reason. var addresses = [ {name: 'Asensio Gonzalez', address:'C/San Marcos 377, 1ºB, 28030 Madrid' }, {name: 'Javier G...
asked by 06.09.2018 / 10:48
1
answer

Show and hide a div according to the value in a textbox?

My problem is the following I select a value in a combobox and it fills a textbox all right up there, but when I want to use the value of the textbox to hide a div I can not, could you help me this is my code: <!DOCTYPE html PUBLIC...
asked by 10.09.2018 / 17:37