Questions tagged as 'javascript'

0
answers

Controller AngularJS

It is possible to do this: var self = this; //self.emp = {nCodEmpleadoPk:null, cnombres: '', capellidoPaterno: '', capellidoMaterno: '', cSexo: '',cnumDoc:'',ncodArea:'',ncodCargo:'',nEstado:''}; self.emp = {nCodEmpleadoPk:nu...
asked by 26.06.2017 / 15:12
1
answer

OnClick does not run after OnClientClick

I have a form with a button, when I put the button (this button actually use it for several things changing the name and using flags in the method that defines the click) this executes the JavaScript in the client but never reaches the code -beh...
asked by 30.08.2017 / 20:16
1
answer

Change the values of slider and refresh?

I'm trying to create a dynamic range bar that changes value by doing click on a button, var slider1 = new Slider("#ex1"); slider1.options.min = 20; slider1.setValue(50); slider1.slider('refresh'); <input id="ex1" data-slider-id='e...
asked by 26.06.2017 / 17:40
0
answers

How to load data obtained from an Ajax in the "description" attribute in Openlayers 2?

is the first time that the OSM API with OpenLayers and I have the problem that when I want to load the values returned with an Ajax, it does not load them. this happens in the "description" attribute of the new OpenLayers.Feature.Vector func...
asked by 27.06.2017 / 16:31
1
answer

How to examine objects in Node.js?

I assign a variable to an object, I do console.log with it with intention to find out and examine what is inside the object, but when I start the code in console ( CLI ) ( PowerShell ), this console.log simply returns the following: [object]...
asked by 22.05.2017 / 12:50
2
answers

Format an array and pass it to a DataTable using a WebServices

I comment I'm trying to use DataTables making a WebServices to another server, which returns an array in Javascript with the following values : [ ["2017-05-25 23:10:00","0","100","17.2"], ["2017-05-25 23:20:00","0","100","17.2"],...
asked by 30.05.2017 / 03:10
1
answer

Animation inside a canvas - spinning wheel

I am building a spinning wheel that is filled by database which I do the following code but at the time of executing it I get rotateWheel is not defined supposedly what is wrong is spinTimeout = setTimeout("rotateWheel()", 3000); This...
asked by 11.05.2017 / 20:27
1
answer

Error in javascript backbone: A "url" property or function must be specified

I'm doing a design by mvc in JavaScript backbone, but when I implement the function to remove an element from the collection, I see this error: A "url" property or function must be specified This is the code: eliminarCliente: function(i...
asked by 21.05.2017 / 04:25
1
answer

I get this error cant set headers after they are sent

Hello people, I am using passport-local and what I want to do is show the user when he / she does the login My code is this var passport = require('passport'); var localStrategy = require('passport-local').Strategy; var User=require...
asked by 20.05.2017 / 23:40
1
answer

Nodejs, update data in mongodb

I'm trying to create an api where I receive 2 parameters, the id of the session and the seat that needs to be reserved [ { "id":1, "tanda" : "7:30am" , "asientos" : [ 0 , 0, 0, 0, 0 , 0, 0, 0, 0 , 0, 0, 0, 0 , 0,...
asked by 01.08.2017 / 17:43