Questions tagged as 'javascript'

0
answers

I do not upload image when uploading it to the server

I've been trying to make a code to upload an image to the server folder and the path appears in the database, until now I'm just looking at the variables of name, category and that, but only me load the gif and I do not get the information. T...
asked by 21.12.2018 / 16:30
1
answer

When compiling the application, it does not detect all the changes that are in development mode. React-Native

What happens is that when compiling the application with react-native , using the commands: react-native run-android --variant=release ./gradlew assembleRelease generating an .APK, that does not work correctly, does not detect some ch...
asked by 04.01.2019 / 15:13
2
answers

how to capitalize the first and last of each word in javascript? [closed]

Write a function that receives a phrase by parameter return that same phrase, but with the first and last letter of each word in uppercase.     
asked by 08.12.2018 / 23:44
1
answer

How to stop a setTimeout?

As I can stop a setTimeout , while it's running, I thought it was with clearTimeout , but it's not like that window.addEventListener("DOMContentLoaded", main); function main() { var mano = document.getElementById("man...
asked by 05.09.2017 / 16:19
1
answer

Error inserting data in the database from the form

Hello friends, a question someone knows because they are not inserting data into the database thank you very much: ( $('#btncreartipovehiculo').on('click', function(event){ event.preventDefault(); carguePlacas = $('#carguePlaca...
asked by 17.09.2018 / 13:35
2
answers

Is the algorithm correct? [closed]

I made this code to test a random number: function a(n){ var b = (Math.floor(Math.random() * (parseInt(n) - n/4) + n/4)); return b; } console.log(a(20)); My question is if all the numbers have the same opportuni...
asked by 01.09.2017 / 22:15
1
answer

How to convert an array of pairs [key, value] into an object?

I have an array that previously orders 'Array: [ [ '2015', [ 11, 12 ] ], [ '2016', [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] ], [ '2017', [ 1, 2, 3, 4, 5, 6 ] ] ]' 'Array reverseado: [ [ '2017', [ 1, 2, 3, 4, 5, 6 ] ], [ '2016', [ 1, 2, 3, 4,...
asked by 24.07.2017 / 17:13
1
answer

How to know if it saves cache? [duplicate]

Assuming that my last modification of a file was at 17:50 PM, then the user enters but still sees the page as if it has not yet been updated and does not load correctly, as I can check with javascript if it has the latest version of some speci...
asked by 10.07.2017 / 23:29
1
answer

call a javascript function in php (to then make a query in the php)

   Top: previous consultation of the data <?php function conexion(){ $conn = null; $host = 'localhost'; $db = 'mi_base_datos'; $user = 'usuario'; $pwd = ''; try{ $conn = new PDO('mysql:host='.$host.'; dbnam...
asked by 06.07.2017 / 16:28
1
answer

Problems with Ionic

When creating an ionic project in the www folder, I am not creating the js files and more than I normally would, or I do not know if this is currently the case. I appreciate the help to get out of doubt. The first image shows the www folder m...
asked by 07.06.2017 / 14:57