Questions tagged as 'javascript'

1
answer

How can I send files from an html to javascript

Well I have a code in c ++ but I want to pass it to html and javascript what I want to do is that with three inputs that will be on the page enter numbers and that are passed to javascript and there to do mathematical operations and that I retur...
asked by 23.03.2018 / 18:03
1
answer

Ask for data with prompt () and store it in mysql with php

I am working a sales system but when a product has a unique serial number I need you to show me a prompt () to write the serial number and then store it in a php variable and store it in mysql. This is my code: <?php if($tProducto == "...
asked by 25.03.2018 / 11:40
1
answer

What is the reason for the error Uncaught TypeError: Can not read property 'addEventListener' of null?

Hello, could someone please explain me because I get this error in the line:      btnInicia.addEventListener("click", tiempo); This is my code for my juego.js : var canvas = document.getElementById("canvasAl"); var context= ca...
asked by 22.03.2018 / 04:32
1
answer

Events with drop-down lists

How to make an "event" occur when you choose an option of select name="SistemasOperativos" and from this select show another list.  that is: name="ClasificacionWvista" , name="ClasificacionW7" or name="Clasif...
asked by 09.03.2018 / 23:24
2
answers

How to change the value of find in a table with a popup?

I have the following problem, I open a popup window. pressing the save button updates the current tr of the table. This does it very well with this: parent = linkObj.closest("tr"); parent.find('td, th').css('backgr...
asked by 13.03.2018 / 01:37
1
answer

How to upload image to the local server externally?

I have a problem trying to upload a photo to my local server, everything works fine if I use an action and refer to the folder where my php file is, but it's not what I need because it redirects me to an empty page, I need to redirect myself t...
asked by 05.04.2018 / 18:13
1
answer

Skip a setInterval

$(function(){ var i = 0; var myVar = setInterval(function(){ $('#numero').html(i); i++; }, 5000); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <di...
asked by 06.04.2018 / 02:52
1
answer

Make several AJAX calls and fill a Datatable with these calls

I'm trying to fill a Datatable with the 87 Star Wars characters, for this I'm doing Ajax calls and I put them in the Datatble, the problem is that the API pulls ten characters using a JSON for each url and I can use rods called to get the 87, wh...
asked by 05.04.2018 / 16:52
1
answer

Call a value from the BD to an input

Hello good afternoon I would like to know how I call this value 19 to another view in an input that I will put hidden, I need it to calculate the operation automatically the value 19 I have it in a table called Iva and not having...
asked by 06.07.2018 / 21:55
1
answer

How do I read a .txt file in javascript line by line?

Good, I have a text file with several possible passwords saved like this:    0 00 000 1 11 111 123 There are many more but it is to teach where the shots go. I do not know how to read it line by line and compare it with the passwor...
asked by 21.11.2017 / 15:48