Questions tagged as 'javascript'

2
answers

Send to a View the list of Customers in my database

I tell you that I'm doing a database where I register clients. And for the disabling of a client I use logical deletion, setting the property of Enabled = false to the client. Then, it occurred to me, that when I loaded my Create.html view, I...
asked by 01.11.2018 / 03:53
1
answer

Obtain values of a jsp variable in javascript

I was trying 2 ways to get values in a variable jsp in my javascript, but they give me different results FIRST ALTERNATIVE //Con esto obtengo un string con este valor "[1,2,3,4]" <% String permisos= (String)session.getAttribute("permisos...
asked by 10.09.2018 / 17:01
1
answer

Save form values in LocalStorage / JSON - JavaScript

I'm trying to save the values of a form in the LocalStorage to then pass it to JSON, all in JavaScript, I appreciate a help with this, this is the code I have. CODE: var theForm = document.querySelector("#form"), valores = []; [].forE...
asked by 31.08.2018 / 18:47
1
answer

How to save a Json in a variable javascipt

hi chic @ s I have a problem. I'm designing a web in which I use a php script that searches in several directories of my web images that comply with certain characters in its name, and once it has this it returns the link in json format. My p...
asked by 29.08.2018 / 20:46
1
answer

Validate array within a JSON in node.js

I need to validate the fields within the "Extras" array, they are really "Number" and "Country_code", I also need to be able to obtain the values. HELP PLEASE !! "Persona": [ { "Nombre":"Maria", "Apellido":"Vargaz",...
asked by 01.09.2018 / 15:36
1
answer

Creation of dynamic table

I'm creating a table with js for (j = 0; j < usersConCaptura.length; j++) { html += "<tr>"; let contador = 0; html += "<td id=usersConCaptura[j].ID_U>" + usersConCaptura[j].ID_U + "</td>...
asked by 07.09.2018 / 05:07
1
answer

What function do I need to add for "next and previous" buttons in slider in Javascript html and css

I'm a newbie in javascript and I have a code for a slider, what happens is that it makes the transitions automatic, I would like to add the function to the buttons I have set. I leave the code var slideIndex = 0; showSlides(); funct...
asked by 27.08.2018 / 21:08
2
answers

Line breaks in html

I have a common form that sends data to firebase. In textarea text is written, we know that with the enter key, line breaks are generated. By sending this information in firebase it is saved as a string but ... By showing the...
asked by 26.08.2018 / 22:10
1
answer

"parsererror" SyntaxError: Unexpected token in JSON at position 0?

I do not stop getting this same error, I have researched about it and it seems that I am sending as html ... something? The concept does not finish to me to be clear in the other answers that have been with the same problem &...
asked by 27.08.2018 / 15:08
1
answer

How to send an alert ("") from asp.net, sending a string + a variable

In what way you should send a message type alert, from an asp.net form. Currently I used this: if (user._contraseña.Equals(claveI)) { ClientScript.RegisterStartupScript(this.GetType(), "alert", "aler...
asked by 11.11.2018 / 00:24