Questions tagged as 'javascript'

2
answers

How to correctly perform a function that returns a promise with Ionic?

I want to do a function that gives me back a promise, but I do not really understand the subject, what I tried is this MiFuncion(miParametro: string): Promise<void>{ // mi codigo ... console.log(miParametro) return new Promis...
asked by 17.10.2017 / 22:05
1
answer

How to send Text from Listboxt by GET?

I am passing some parameters using javascript via GET to my controller. One of them is a field of type listboxt(select) , however I can not get the value of the selected text to show it in my result, but rather the text that shows me is...
asked by 25.10.2017 / 22:44
1
answer

Access element list VUE JS

<div id="names"> <div class="row"> <div v-for="i in list2" v-on:click="details('...')" data-toggle='modal' data-target='#myModal' class='col-md-4 text-center'> <img src='images/st1.png' class='img-fluid'>...
asked by 26.10.2017 / 16:24
1
answer

Javascript only works on the same page [closed]

I have a problem with some Javascript routines that only work on the same page, they stop working when I put them in another file in which I have other Javascript routines that work normally, the first function shows me a tooltip in some submit...
asked by 02.10.2017 / 03:07
1
answer

SweetAlert: Unexpected 2nd argument

Good afternoon, I have the following code: function desactivar(idcategoria) { swal({ title: "Desactivar Categoría", text: "¿Está Seguro de desactivar la Categoría?", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55",...
asked by 05.10.2017 / 17:45
1
answer

Problem with Gulp Build

In my project I am using Gulp. I have two problems: Do not copy the images to the dist folder. I am using imagemin . I have already checked the directory multiple times, but I do not see the error. My folders are organized as f...
asked by 31.10.2017 / 13:45
0
answers

How to create a directive with angularjs

I am testing interact.js v1.2.9 which is useful for drag and drop. I want to create a directive of AngularJS v1.6.4 to communicate with my controller and modify the scope, when I take my code to practice the objects that I am creating have probl...
asked by 12.11.2017 / 21:53
0
answers

How to use uglifyjs with classes?

I have written a library called joe.js which contains some functions and two classes. The problem comes when I try to use the uglifyjs command uglifyjs joe.pretty.js --compress --mangle > joe.js which returns the error: Parse error at...
asked by 10.11.2017 / 12:27
1
answer

Firebase - Extract an image or a thumbnail of an mp4 video uploaded to the STORAGE or when the .mp4 file is uploaded

I spent a few days researching and reading firebase articles, Cloud Storage firebase, nodejs, canvas, javascript, apis, etc. But what I found is more complicated than what it should be and surely there will be easier ways to do it. Can someone g...
asked by 11.11.2017 / 16:49
2
answers

How to get values of elements created in the DOM

Good morning to all ... My goal is to put in an array the data that goes putting two inputs of my form, with the exception that when pressing the button more, the information is saved in an array, and it is created another new element "box / div...
asked by 11.11.2017 / 16:25