Questions tagged as 'javascript'

2
answers

Problem uploading ajax and php files

I do not know what is happening but I can not upload files with php / ajax does not recognize the index file, My code: Html: <div class="wrapper-attachment" data-type="attachment" style="display: none;"> <form name='archivo' enct...
asked by 21.07.2017 / 12:31
2
answers

Do not validate a row with empty fields

I have a problem with the same program that generates, deletes and adds rows within a table, but what I want to do is that when the user does not enter one or any data inside the table, I get a alert that says : "you have not entered the...
asked by 20.07.2017 / 20:29
1
answer

When calling a function (Uncaught ReferenceError Is not defined) [closed]

I have a problem when I call the show products by quality and specialty () . Before I had only the first two parameters, but when I added the third data.name I got the following error: Uncaught ReferenceError: MADRID is not defined     at...
asked by 20.07.2017 / 15:17
1
answer

how to redirect from ajax?

Very good I have a problem to redirect from use ajax post request The problems are as follows: I have a div which receives only all the validation texts that could occur in the application <div id="resultado"> </div...
asked by 17.07.2017 / 20:25
1
answer

Get Id of the current item in Sapui List5

I am creating a list dynamically, from which I need to obtain the id of the selected item. This is an example. In Alert, the current id should be returned. I would appreciate that instead of correcting the way of writing or something else the...
asked by 18.07.2017 / 05:33
1
answer

Error when passing variable from Javascript to PHP from the same file?

First of all mention that I found similar questions to this with possible solutions or closed because they are duplicated but without a solution. To pass the variable from JavaScript to php I decided to do it with Ajax in...
asked by 12.07.2017 / 03:14
1
answer

Why is visibility not changed? Javascript

I made this code: document.addEventListener("DomContentLoaded", function(){ var home = document.getElementById("home"); var set = document.getElementById("settings"); var binds = document.getElementById("binds"); home.onc...
asked by 12.07.2017 / 03:07
1
answer

In node js how to control asynchronous programming

If for example I have two lists of numbers and letters. var arrayletras = ["a","b","c","d","e"]; var arrayNum = [1,2,3,4]; arrayletras.forEach(function (valLetras) { console.log(valLetras+": "); arrayNum.forEach(function (valNum) {...
asked by 11.07.2017 / 16:44
1
answer

Save the values in the table

I need your help, I'm new to this JavaScript. My table creates new rows and inside it I can add the data, only that what I want is that the added fields are "saved" (so to speak) each time I add a new row. When I save I mean that the fields al...
asked by 17.07.2017 / 18:54
1
answer

Calculate in reverse

Greetings, friends. I have a question about how I should implement this function. Currently she does me the percentage calculation well, but now I would like to put it to calculate the inverse. Form <div class="row"> <div cla...
asked by 16.07.2017 / 17:44