Questions tagged as 'javascript'

2
answers

Assign value to the dynamic jQuery element

I have the following for where I try to fill a dynamic input text, the question is that I do not know how to assign the path value of for to be able to fill them correctly: for (var j = 0; j < respuesta.length; j++) {...
asked by 19.02.2018 / 21:09
2
answers

Persistence of data in AngularJS

I have an app mounted, which is structured as follows: Menú - Sección 1 - Sección 2 - Sección 3 Each of the sections is a view, which loads the data of an API, which is executed when accessing each of the views. My question is, is th...
asked by 20.01.2017 / 16:33
1
answer

How can I create localStorage database in apache cordova

Good afternoon, I wanted to know in what way I can create a localstorage database because I have had problems when doing it with IndexedDb because I can not relate two tables to each other.     
asked by 15.04.2016 / 16:43
1
answer

Store 'form' in a variable - Meteor

I'm trying to store an entry by telcado or input in a variable, but when I try to print it, it returns empty. This is a simple login. I have a file called login.js, in which the one I set the from in the following way: Temp...
asked by 19.01.2017 / 14:43
1
answer

How to intersect two arrays and eliminate their equal values?

I have two different arrays in jQuery: a = {1, 5, 3, 4} b = {1, 4} First obtain the intercepted values, they would be 1 , 4 . Then delete the intercepted values in the a array, it would look like this: a = {5, 3} Any...
asked by 20.04.2016 / 21:11
4
answers

problems when validating form

I have a form that sends information to another web page to do an operation on a DB, but I am trying to validate the form first so that it does not send empty fields to the DB, the validation I already have but I could not do to validate first a...
asked by 22.03.2016 / 16:30
2
answers

How can I count the repeated digits of a number in javascript [closed]

How can I count the repeated digits of a number entered in a javascript prompt? That is, they ask me that when the user enters the number in the prompt, determine how many times the number "1" is repeated in that number and if there is no num...
asked by 26.03.2016 / 00:44
2
answers

JQuery UI Slider in modal

I have a JQuery UI Slider that is not displayed within a modal. What do I have to do to make the Slider show inside the modal? This is my code (also available at Plunker ): angular.module('ui.bootstrap.demo', ['ngAnimate', 'ui.boo...
asked by 02.06.2016 / 15:41
3
answers

How to configure Ubuntu 14.04.4 VPS for app in NodeJS?

My query is as follows: I have an app made on nodeJS and Express, use SocketIO to extract data in real time from Twitter. What is the procedure to pass my app to a VPS in such a way that when doing sudo reboot my app is run on the...
asked by 17.03.2016 / 02:13
2
answers

incomplete rows in JS with FOR cycle

If there are 50 rows, why does JS run 49 rows? this is my code var todoCorrecto = true; var formulario = document.enviaComision; for (var w = 1; w < formulario.length; w++) { if (formulario[w].type == 'text') { if (formulari...
asked by 27.05.2016 / 22:16