Questions tagged as 'javascript'

1
answer

Sort Drop-down menu HTML5 / CSS / JS

Currently I have a simple menu with one of the drop-down options since I only need that option to deploy. The problem is that I do not get the option to drop it in the correct position that is the third, but it is last. Additionally I have a pro...
asked by 14.11.2018 / 17:21
1
answer

Error Undefined index: loading an excel - laravel 5

I would like to know if someone can help me with this error. I'm trying to upload a file in excel to a table in a bd, but I get that error, and sincerely I've given it a thousand laps and I do not know why I do not take the data. I'm tryin...
asked by 09.11.2018 / 21:33
0
answers

How to update canvas width and height when resizing image

How can I update the width and heigth of a cava actuamaticamente. What happens is that I have an image to which I resize it, to larger or smaller size and the canvas takes me the original measurement and not the new one that I added to the image...
asked by 09.11.2018 / 19:48
0
answers

how to compare in javascript

Hello very good night I have a little problem when comparing in js always gives me false this is my code is from an ajax response. if(data == "a") { alert('true'); } else { alert('falso');...
asked by 08.11.2018 / 00:14
2
answers

Failed PHP query using Jquery

I have a script in which a query is made using jquery, when executing it, it always gives me the error message. Js code: var request = $.ajax({ data: {nombre : document.getElementById("nombre").value, puntos : puntos}, url: "conexion.p...
asked by 08.11.2018 / 19:13
1
answer

JSON file to CSV in Node.js

I would like to know if anyone has an idea of how to convert a JSON into CSV in node.js For example, this JSON: var myObj = { "Processes": [{ "id": "p1", "burstTime": "3", "arribo": "0" }, { "id": "p2", "burstTime": "4",...
asked by 08.11.2018 / 03:07
1
answer

promises in firebase

I'm working with real time firebase, and I have a problem getting a value within a promise, because I would like that value to be stored in a global variable firebaseService.database().ref('Users/' + us.uid).once('value').then(function(snap...
asked by 08.11.2018 / 00:46
1
answer

Update data from a while

Hello good day My problem is that I have a table of type of vehicles and plates and I need you to update by means of a button, it only works with the first data shown by the while, but it does not change it with the others MI JAVASCRIPT...
asked by 07.11.2018 / 18:20
1
answer

add a php function with apped () jquery

I have this div to which I want to inject the html code: <div id="phas"></div> And this is the html code that I want to add, but inside, it has a php function to build the options of a select. var myString = '<label>Sele...
asked by 07.11.2018 / 18:15
1
answer

Array.find Javascript

I have a question, this problem I could solve with a simple for but, well, I can not sleep with the doubts. Using the Array.find() is supposed to work by taking the first found result of what was requested, I wanted to use it to...
asked by 11.11.2018 / 05:13