Questions tagged as 'javascript'

1
answer

Uncaught SyntaxError: Unexpected identifier in a setTimeout ()

I dynamically load the following file: full.js window.APP = { SKIN: 'FSKIN', Run: function( ) { var layout = { }; console.log( 'Lanzando <full>' ); debugger; setTimeout( window.SPINNER.stop( ), 2000 ); } }...
asked by 15.02.2017 / 08:04
1
answer

Divide an array into exact divisions

I have an arrangement of 10 elements and I want to divide them from 2 into 2 elements. let array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0]; let res = []; let parcial = []; for (let i = 0; i < array.length; i++) { parcial.push(array[i]);...
asked by 16.10.2018 / 18:04
2
answers

get result of promise

I want to get the result of the promise but I can not, is it possible? function initPromise() { return new Promise(function(res,rej) { res("uno"); }) } let data=initPromise().then(function(result) { console.log(result...
asked by 02.08.2018 / 17:43
1
answer

How to put momentsjs in a VueJS application

I want to put the momentJS library in my Vue application, and that the full functionality of moment is available in any component of my app.     
asked by 27.07.2018 / 10:00
2
answers

Get moving data from input type="range"

My question is if there is a function or if you could provide me with one so that when you move the pointer, you can get the data in motion. The page is: www.mibilleteravirtual.com.ar As you can see the data is only obtained by releasing t...
asked by 21.08.2018 / 18:07
3
answers

How can I auto select a select with javascript or jquery

Hi, I would like the first value of a select to be self-selected. As you will see, my code is the following, I do not know what I am doing wrong. the HTML <div class="row" style="display:block; margin-top:-95px" ng-controller="lista_clav...
asked by 31.07.2018 / 21:13
2
answers

How exactly does '$ .ajax ({type, post, data})' work in this connection?

Good morning, I am a student entering the world of programming trying to figure out how exactly the script works and I could use a help please, thank you. <script type="text/javascript"> $(document).ready(function() { $('.error').hide(...
asked by 15.08.2018 / 17:48
2
answers

How to determine if the cell that has changed from a google sheet is in a list and how to put a trigger?

I am new to google scripts and event handling and I do not clarify with the API. I'm looking to create a script that monitors certain cells in a specific sheet of a google sheet book. These cells contain a formula that depends on the content...
asked by 20.08.2018 / 12:01
1
answer

How to block dates in a DateRangePicker with data from an array

I have a bootstrap daterangepicker in which I would like to make a series of conditions so that according to the dates in the database they are blocked and change color. My problem is that I'm not sure how to tell the DateRangePicker to take the...
asked by 17.08.2018 / 11:29
1
answer

Pass value from a select to modal select

Good I'm doing a form edition through modal. I have managed to pass all the necessary data through javascript, but I do not know how to pass the value of a select to the modal's selection. The select is the state of Activated, Deactivated, an...
asked by 15.08.2018 / 21:58