Questions tagged as 'javascript'

4
answers

Break the "tail" that leaves the "hover" effect

I need a div to have a style when you pass the cursor over ( hover ), and another style when you do a click . //HTML <div>texto</div> //HOVER JS $('div').hover(function() { $(this).css({'background-color':'blac...
asked by 09.03.2018 / 21:12
1
answer

Call Functions of a class from a different class?

I recently implemented a javascript Liberia to my ionic project (winwheel.js) I have the following function on my Home.ts Exactly in this line of code 'callbackFinished' : this.alertPrize I call the function alertPrize() E...
asked by 11.06.2018 / 14:28
1
answer

call of a function from another php file

$bd= new DB(); $conectar = $bd->conectar(); function extFolio($folio) { $query = "select FolioParticipanteCG from participantes where FolioParticipanteCG = '".$folio."'"; $folio=mysqli_query($conectar,$query)or die("Error al selecci...
asked by 07.06.2018 / 20:26
1
answer

Pass dynamic array by AJAX

EDITED I am trying to send the following data with AJAX var datosInsert = JSON.stringify({ 'datosCarga': valoresEntrada, //[1,2,3] 'loteCaja': fieldLote, //101 'cajaLote': numeroCaja //1 }); $.ajax({...
asked by 21.02.2018 / 00:11
1
answer

Difference between then, observable and subscribe

I have seen some codes where the functions of then , observable , and subscribe are used. I'm not sure but I think that all are doing the same, I would like to know with an example if it is possible what is the difference betw...
asked by 12.06.2018 / 17:23
1
answer

Change the width of the bars in google chart

Currently I have the following code where I make the comparison of two data and I graph them in a bar graph, the problem is that the width of the bar is very thick and I want to reduce it, if I enter more data in said graph the width of the bar...
asked by 09.08.2018 / 14:35
2
answers

Encode image in base64

Good morning. I have an image in a server folder that I want to encode in base64 to be able to insert it in a pdf with the jsPdf plugin. I have tried to insert the image in a canvas but when I code it is encoded correctly but clearly, it e...
asked by 07.02.2018 / 07:06
1
answer

Browse Objects Array with Jquery

My problem is this, I have an array of colored objects and it is as follows:  [Color [id = 1, CodeColor = Red], Color [id = 2, CodeColor = Green]] And I need to go through that array of colors through the jquery library and paint it in an option...
asked by 25.02.2018 / 16:11
1
answer

Problem with functions and loop for

I can not effectively do that while executing the readSuccessB(evt,file) function, pause the loop and resume right after finishing that function. I have tried callbacks creating variables so that if it is running do not call the func...
asked by 31.12.2017 / 03:43
1
answer

JQUERY Help with multiplying values of columns and adding the results

I have this table: the objective is to multiply value1 (first column) and value2 (second column) and the result (third column), then add each one of the results. <table border="1"> <thead> <tr...
asked by 10.01.2018 / 07:07