Questions tagged as 'javascript'

2
answers

How can I do a STRING when iterating the values of an ARRAY?

From a screen I get the ID and the VALOR of a group of INPUT TEXT with the following code: var docs = document.getElementsByName('ftp_desc'); for (var i = 0; i < docs.length; i++){ console.log('id: ' +...
asked by 06.11.2017 / 18:17
1
answer

How do I get the IDs and VALUE of an input text array?

I am making a screen that adds images to the database and after doing so, ready them by adding a text box in which I will capture their DESCRIPTION, example: <form> <input id="1" name="ftp_desc" maxlength="256" placeholder="Añade...
asked by 06.11.2017 / 17:17
2
answers

convert $ .getJSON script to $ .post

I have a problem I am trying to pass a series of $ .getJSON script to $ .post: $(document).ready(function(){ //getdeails será nuestra función para enviar la solicitud ajax var getdetails = function(id){ return $.getJSON( "index...
asked by 30.10.2017 / 18:36
2
answers

Do not load the values in input

Good afternoon everyone, I'm pulling some data from the BD and I send them to javascript because the data pulls them as they see in the image, I do not know why the values are not assigned in the input. I appreciate your help. $(function...
asked by 24.01.2018 / 18:25
1
answer

What's wrong with this function? Returns return undefined

I want to make a function that returns the data of this process but I am not achieving it since when executing it and sending it an id it returns undefined var getData = function(id) { db.collection('users').doc(id).get() .then(fun...
asked by 23.01.2018 / 19:48
2
answers

How to work on an external file with Jquery in Visual Studio Code?

Good! I am studying Web Programming and I have been using the editor vs code for a long time. When I want to use Jquery in an external file the auto-completion does not appear, there is no syntax help. Can someone help me?     
asked by 23.01.2018 / 16:23
2
answers

Check if an image exists in the folder

We have a web portal in which each user appears with an image. In a folder we have all the photos of the users. The name of the images is the ID of each user. We want that if an image does not exist (the image of a user), a standard image...
asked by 25.10.2017 / 06:39
1
answer

Why does not it bring the data to the datetime-local type impu?

I am passing data from a record to some inputs when I click on one of the events, so that they are displayed on the screen, however, it does not pass the data to the datetime-local type input. The fields in the data section are obviously datetim...
asked by 26.10.2017 / 14:24
2
answers

Pass data from a blade to the JS

I'm using Laravel and I have a blade with the variable: {{$project->slug}} On the blade I also have a button with which I want to open a new window, but as I have different projects it has to be 'dynamic'. The code of the button is as...
asked by 27.10.2017 / 11:00
1
answer

How to get the values of a form? [closed]

Good morning, with everyone, if at some time, you were asked to develop a form with many input, I propose this solution Jquery and JavaScript and of course you send it by Ajax . var config = {}; //--->> calcular cuantos input t...
asked by 30.09.2017 / 15:50