Questions tagged as 'javascript'

3
answers

Is it safe to save an Array in localStorage?

Is it safe to save an array in localstorage? I read that one can convert the array to a string and then pause it but how sure is that the data will remain the same? An alternative that I am considering is to use something like: localStorage...
asked by 31.07.2017 / 10:36
2
answers

Mathematical operations table HTML

I have a table HTML in which I want to perform mathematical operations, but I do not get to execute the code. function formula() { var cantidad = document.mytable.cantidad.value; var precio_unitario = document.mytable.precio_unitario.va...
asked by 02.08.2017 / 09:22
2
answers

Where can I put the TH in this table?

Hi, I have this table where I show a result, but when I put the TH, the TH is repeated the number of times according to the result. <head> <!--<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> --><s...
asked by 12.07.2017 / 04:08
3
answers

Erro: function 'create' is not defined

I try to create a text in canvas by passing the text that will use the fillText() as the function parameter from a onclick event in the HTML document, but it tells me that the function crear() is not defined. window....
asked by 10.07.2017 / 23:56
1
answer

Capture parameter when it is in checked status and I click on the button

I have this ajax $(function() { //function ajax $('#example-table .processPreset').click(function(e) { e.preventDefault(); var elemento = $(this); var idArt = elemento.parent().parent().find('#id_articulo...
asked by 10.07.2017 / 16:35
2
answers

Print the contents of a DIV in PDF

I have an application in which I generate PDF417 codes, I tell them I have a button that takes the information from a TEXTAREA and with a dll or a library generates a PDF417 code, what I'm looking for is that DIV that generates a button to print...
asked by 10.07.2017 / 20:31
1
answer

Edit the content of the media min-width with jquery

@media (min-width: 768px) { . . . } I would like to know if there is any way to manipulate the content of the media by means of javascript or jquery.     
asked by 20.07.2017 / 16:20
1
answer

Is it possible to send parameters?

Is it possible to send parameters to an anonymous function from another function? Having: function noSabe(){ return 'nosé como enviartelos';} (function(a,b){ // Necesito recibir parametros })();     
asked by 18.07.2017 / 04:28
1
answer

Infinite loop in Javascript

For some reason in my program an infinite loop is being generated and this does not allow me to run it. var menu_opcion; var profesores_opcion; var profesor = []; var x; var profesor1; var renglon = 0; var error = 0; var yaesta =...
asked by 19.07.2017 / 02:54
2
answers

Fill table with Select mysql

Good afternoon, I need to fill a datatable of jquery with the data brought from a select with the filter of a parameter, select the filter from a checkbox and pressing a button displays the data in the table The query works, but when showing the...
asked by 06.07.2017 / 18:51