Questions tagged as 'javascript'

3
answers

input component angular2

Do you know if you can get the data from the constructor that is obtained from the input component that define an 'id' ?, That is what I do is make a directive <contenido-images [id]="contenido.id"></contenido-images> that...
asked by 06.04.2017 / 00:55
1
answer

AngularJS radio button, ng-model does not update and ng-change does not work with ng-repeat

I have an array with people's objects and the name and menu attributes for a dinner. I want to paint them in the HTML with ng-repeat and each member will have a set of radio buttons so that, if they want to change the menu, I collect th...
asked by 11.04.2017 / 12:55
4
answers

How to create a custom event in javascript

Good, I am created a function that verifies the state of a global variable, this variable must be constantly verifying it to know if I change its value. The idea is that call this function and that it can return for example an event of type s...
asked by 10.04.2017 / 23:21
2
answers

Extjs multiselect combo

I have created a combo with values that I get from a table in the database using an id. I need that combo to be multiple selection but when I put in the xtype:'multiselect' it does not show me any value. xtype : 'multiselect', field...
asked by 12.04.2017 / 13:26
3
answers

What is the best way to use an event in javascript? [closed]

Hello, I am starting in the world of programming in specific JavaScript, and I have a doubt, I am learning about events (onclick, onmouseover, etc). And my doubt is that I have seen that many use events in different ways, we write them in the...
asked by 10.04.2017 / 16:32
1
answer

$ is undefined in unit test mocha

I am using mocha to perform my unit tests of the web layer, and it generates the error:    $ is not defined Can I be missing something else to recognize the $ of jQuery ? The code of my test is: var assert = requi...
asked by 02.01.2017 / 21:34
1
answer

How to pass a variable type counter to a javascript variable to create a graph

I have a problem with my html code using angular js, the fact is that I want to pass a variable called "count" that belongs to the note that a student took in an online test, which accumulates as the Student is having the correct answers. The pr...
asked by 01.04.2017 / 01:40
2
answers

AJAX does not run with element a with href indicated

Good morning, I am using a small script to update my database when I click on a link. That link has an onclick event. At the beginning to see the values that I was giving in the console, I did not have any links. Once seen that it work...
asked by 02.04.2017 / 22:23
1
answer

Create url from an array in angularjs

I have the following array: $scope.arreglo = [ {"clave_acceso":"122"}, {"clave_acceso":"222"}, {"clave_acceso":"333"} ]; and from the desire to create a url which should be like the following: If the fix has a data:...
asked by 31.01.2017 / 15:50
1
answer

What is the correct way to send several datasets in the response using Nodejs and mssql?

Good morning everyone, I have a web application made in Nodejs, in one of the requests I must send two sets of data, which are retrieved independently from a Microsfot SQL Server database. My query is the following Is this the correct way? fun...
asked by 02.02.2017 / 17:12