Questions tagged as 'javascript'

1
answer

Uncaught TypeError: Can not read property 'indexOf' of undefined

I have a somewhat strange situation, or I think I do not understand what is going on because it does not enter the if I am using the var this.searchParams.data where 3 situations happen There's nothing price_desc appears pr...
asked by 05.09.2018 / 19:42
3
answers

Get the last deselected value of a multi select with JQuery

I have the following multiselect: <div class="input-field"> <select name="id_empresa[]" id="select_empresas" multiple required> <?php $ids = array_column($id_empresa, 'id_empresa');...
asked by 06.09.2018 / 03:39
3
answers

Get values from a JSON in node.js

I'm having problems with this code in Node.js. I need to get the information found in "Contents" of the JSON but it gives me an error that says: "e.Contents.forEach is not a function" I guess it's a logical problem but I honestly do not know n...
asked by 06.09.2018 / 16:11
3
answers

move form form to json

I need to pass this form structure to json : <form id="#" name="formulario" action="#" method="#"> <div class="panel-body"> <section class="container-fluid" style="word-break: break-all; word-wrap: break-word;" id="...
asked by 25.05.2017 / 14:54
1
answer

How can I join several http.get responses and update ng-repeat?

I have a controller with several calls $http.get('/...') that get the data correctly. $scope.results = []; $http.get('/call1').then(function(response){ proccess(response); }); $http.get('/call2').then(function(response){ procces...
asked by 25.05.2017 / 19:26
3
answers

Help with a for .each in jquery

Hello everyone my question is the following I have an input that can be 1 to N depends on the php forech and with that PHP I put the name and ID, in my JS what I want is to know their ID of each one bone if it brings me one, capture the input ID...
asked by 08.05.2017 / 14:41
2
answers

Condition a link to redirect

How can a link be conditioned? that is, if a condition is met that is just redirected to the URL of the link, otherwise it will not. if ($(this).is(":checked")) { console.log("SI deberia funcionar el link"); }else{ console.log("NO...
asked by 14.04.2017 / 15:57
3
answers

Using findOne () and findOneById with HTTP requests (Nodejs + mongoose)

I'm doing a api rest where I want to do HTTP requests using Postman, specifically I want to do a search or update a mongodb document, but this must be by an id that is not the doc_id that mongo provides. Basically what I need is for someone t...
asked by 14.04.2017 / 18:27
2
answers

Go through JSON with JQuery [duplicated]

Good morning I'm using a Youtube API that returns the next JSON { "kind": "youtube#searchListResponse", "etag": "\"m2yskBQFythfE4irbTIeOgYYfBU/Ecs31oUVfbCGmEm5at5VxfPVF28\"", "nextPageToken": "CAUQAA", "regionCode": "MX", "pageInfo"...
asked by 04.05.2017 / 20:14
2
answers

How to multiply arrays?

I made a simple code that adds the arrays, but how do I multiply them?           <h1>The % Operator</h1> <p id="demo"></p> <input type="submit" value="Multiplicacion DE VALORES MEDIANTE CICLOS, ARRAYS Y ACUMULAD...
asked by 24.04.2017 / 16:59