Questions tagged as 'javascript'

2
answers

Validate input data in an array of html inputs, using javascript

I was trying to validate 3 different arrays of inputs before processing them, where each contains 2 types of data: a note or rating and a no. of absences. But only interested to do validation in the note or qualification, entered: that is betwee...
asked by 22.11.2016 / 19:44
1
answer

Error in Boostrap modal with JSP and Servlets

I am developing an application with JSP, Servlets and Bootstrap, but I have a problem when showing a modal the problem is that I print in a table data brought from the database and there I have the options to delete and edit, when it is to be ed...
asked by 12.10.2016 / 15:54
3
answers

Change text dynamically when sending a modal modal bootstrap

Modal-Misspass I have this modal which is where users reset passwords. And I would like that after putting your mail and pressing reset, the text changes dynamically and says "we have sent an email to your email". I guess it's with parent and...
asked by 24.10.2016 / 01:44
2
answers

javascript calculator without using eval ();

var memoria = document.getElementById('pantalla').value; var memoria2 = document.getElementById('pantalla').value; //almaceno en variable el valor del campo id="pantalla", en esta caso es un input tipo text. Now I have to create a function tha...
asked by 22.10.2016 / 17:56
1
answer

Validate models with mongoose nodejs

I have my user model. // models/user.js var mongoose=require("mongoose"); var Schema=mongoose.Schema; var userSchema=new Schema({ name:{ type:String, required:"Es necesario un nombre", maxlength:[10,"Nombre muy larg...
asked by 24.09.2016 / 15:46
2
answers

Can you send post parameters in window.location.href?

It is possible to send parameters post to window.location.href when clicking on a button send me to a new page with parameter post , I do not want to send it for get from url .     
asked by 02.10.2016 / 17:53
1
answer

How to implement ng-show in a self-complete angularjs

Hello everyone I have this autocomplete of material and I want to get that when selecting an item my label <p> is displayed: <div class="resumen" ng-cloak> <md-autocomplete md-selected-item="selec...
asked by 01.11.2016 / 15:03
1
answer

how to join with mysql + nodejs

I did this function to join between 2 tables but I think that is not the right way function insertarDatosToArchivos(){ objBD.query('SELECT ID_U from usuario', function(err, rows, fields) { for (var i = 0; i < rows.length; i++) {...
asked by 02.10.2016 / 02:01
1
answer

How to load an image by clicking on a marker on a map

I have the following code with three markers, how is it possible that when I click on one of the markers an image is loaded? var locations = [ ['<h4>Tj</h4>Lat:32.509604, Lon:-117.020600', 32.509604, -117.020600, "<div&...
asked by 28.11.2016 / 18:14
1
answer

Uncaught TypeError: Can not set property 'display' of undefined (...)

I have a store that displays the products and that by clicking on it you would have to open a modal showing the details of that product. I have several JavaScript libraries like jQuery, Prototype and script.aculo.us. Before it worked corre...
asked by 24.11.2016 / 21:30