Questions tagged as 'javascript'

2
answers

electron - access the webcam

to use the webcam from my application made in electron I used the module node webcamjs, this is the code I used, taken from the doc of the module itself: <h1>camara</h1> <div id="my_camera" style="width:320px; height:240px;">...
asked by 08.07.2016 / 20:47
4
answers

Compare two arrays and add non-repeated values to a new array in Angular js

I'm trying to compare two arrays with different lengths and that the non-repeating values are added to a new array. I would like to know how I do it, then I share my code: var myApp = angular.module('myApp',[]); //myApp.directive('myDirect...
asked by 09.07.2016 / 05:49
1
answer

transpilar angular 2

If Angular 2 use typescript how do I transpile my project to ecmascript 5 ? I am using angular cli generated by a folder structure I have seen that there is a dist folder that is generated with the command ng build b...
asked by 15.09.2016 / 22:38
1
answer

how to make an http call when sending form in angular

I have problems making an http call when sending a form using Angular, the problem is that I do not know how to pass a parameter to it and I do not know if I am doing the call correctly, what I want is that the HTTP call is made with the paramet...
asked by 01.07.2016 / 18:04
2
answers

How can I validate from jquery a form that is repeated several times within a while cycle?

I am trying to validate a form that has inputs (radio type) that are repeated through a while cycle while data is being found in the db. I can not validate these dynamic forms using jQuery because if I let it validate only the input th...
asked by 28.09.2016 / 15:56
1
answer

problems with array in apps script

I have problems to pass the information from spreadsheet to an html with apps script. I explain to you; I have a spreadsheet that contains 5 columns and 5 lines, but they are formulas, concatenation and others. from an appscript html templ...
asked by 28.09.2016 / 18:39
2
answers

Overwrite default routes in sailsjs

I have a controller called UsersController with the following method: module.exports = { index: function(req, res, next){ Users.find({}, function(err, users){ if(err) return next(err); if(!users) retu...
asked by 28.10.2016 / 00:51
3
answers

How do I update an input if the checkbox is clicked with javascript?

What I need to do (and that still does not work out for me) is that if the client clicks the OriginAirport checkbox in the address DireccionOrigen input, take the value of the checkbox or, alternatively, define a value for that input that is man...
asked by 03.04.2017 / 13:17
1
answer

Simulate ajax synchronous in a loop

We already know that ajax is asynchronous and the only way to do it synchronously is by setting the async: false option. What I want to do is something like that for (var fact in facturas ) { sendEmailAJAX(facturas[fact]); co...
asked by 04.04.2017 / 15:47
3
answers

Modify javascript object

I am trying to modify an object so that it fits me with the following format: ["Antena" : "red", "Antena FM" : "red", "Antena TV" : "red", "Antena GSM" : "red", "Antena LTE" : "red", "Antena WCDMA" : "red", "Arquitectura de transmisión" : "red...
asked by 18.05.2016 / 17:02