Questions tagged as 'javascript'

2
answers

Sum of decimals within an array

I have problems adding decimals to an array. Doing it this way: var array = [2.74, 48.39, 71.45, 85, 38.39]; var sum = 0; //console.log(array.length); for (var i = 0; i < array.length; i++) { console...
asked by 20.02.2018 / 13:19
3
answers

AJAX Does not enter success: function () when uploading files

I have the following code to upload files .csv and I need to show an alert , that is, a answer when I enter the succes , the problem is that it never enters the function. $.ajax({ data: data, type: "POST",...
asked by 15.02.2017 / 20:55
0
answers

Problem with the Google Maps API

I'm doing a web application where I mark points on the map based on the address obtained, as I do not have the coordinates of the address I want to mark researching I saw that Google has the Geocoder object that allows me to code the given addre...
asked by 08.11.2018 / 20:27
2
answers

Javascript arrays and calculations [closed]

I'm trying to create a array of Strings and give a value to each of the elements. Then calculate the length of each String and multiply each one by the previous multiplication. But it does not work. <h2> DEMO </h2...
asked by 08.06.2018 / 17:34
1
answer

switch case JavaScript: Variable Django is not recognized

I have a function that makes a switch case to select a specific time for a certain element. The problem is that the cases are generated based on the number of elements in the database using the ID as the case number. example: swicth(---meto...
asked by 23.09.2017 / 02:30
1
answer

Load a Pop Up only once to the User

I'm trying to make the Pop Up only go out once to the user and I try to do it by going to save a cookie but I'm not managing to save it, Help Please ... <!DOCTYPE html> <html lang="en"> <head> <meta charset="UT...
asked by 05.09.2017 / 23:39
3
answers

Instruction DriveApp.searchfiles

In Google App Script I am doing an algorithm that consists in searching a file in the google drive and recording its URL for future use. To find the file I use the following sequence of instructions: var files = DriveApp.searchFiles('title con...
asked by 13.09.2017 / 00:17
0
answers

How do I replace "html:" with "" throughout the document?

The HTML6 language has these types of tags. As it does not even work in the latest version of Chrome, much less in IE. I think a script could solve this problem. How do I replace? This is my code:     
asked by 02.01.2019 / 04:14
1
answer

Why does not it show the expected alert? [closed]

(() => { document.addEventListener("DOMContentloaded", () => tc = document.getElementById("coor"); tc.addEventListener("click", (evt) => { alert(evt.clientX); }); }); })(); <!DOCTYPE html> <...
asked by 01.08.2017 / 15:42
1
answer

Send mail from Ionic

I'm following this guide , and I can not get it to work for me. I have installed the pluggin and I have copied the following code in my method: public enviarCorreo() { let email = { app: 'gmail', to: '[email protected]',...
asked by 10.08.2018 / 13:22