Questions tagged as 'javascript'

1
answer

Register listeners in javascript classes

I'm trying to create a javascript class for a droparea, I tried two different ways. Droparea class allows me to access the properties of the object but when the drop event occurs, e.preventDefault does not work. The class Droparea2 allows to avo...
asked by 16.02.2017 / 20:06
1
answer

Call angularjs function from javascript

In an application that I am doing, I was asked to open the application from the browser. Install the plugin cordova-plugin-customurlscheme to define this and it works perfectly. From the browser, I receive certain values when the appli...
asked by 10.01.2017 / 12:01
1
answer

Graph with Hours and Minutes

Good morning, I am trying to make a graph that shows the total hours and minutes of classes given by a teacher per month. I have only managed to show the hours on the line but I would like the minutes to go out as well. The query is done in PHP...
asked by 10.01.2017 / 09:52
1
answer

Count Array data

I need a way to reduce a array and unify and count the matches in a% new matriz , this is the data: Reduce a array of a API , convert them to matriz and count the names of the countries and leave only the countries...
asked by 19.11.2016 / 16:47
2
answers

Ajax nested requests

I need to make 2 requests $.ajax() nested, where the second depends on the delivered value of the first ... in other words the result of the first enters a loop and for each record found makes a new request . Something like this: functi...
asked by 29.10.2016 / 10:49
1
answer

HTML buttons do not work - Javascript - AJAX

I want that when selecting an image of the STATE column of a table I change the image / icon depending on what you choose in the modal created in Bootstrap with two buttons / Button1 or Button2 /. If your initial state collected from the databas...
asked by 18.11.2016 / 09:36
5
answers

Modify a variable from the server with Socket.io

I need to change some variables of a script from the view of my project, but I need to do it from the server or have the variable take the value I send it through websockets . I tried the following: //EN EL SERVER io.sockets.on("connect...
asked by 27.10.2016 / 01:53
1
answer

difficulties with ng-click and show data with angular

Greetings, such. I have an app that shows the people registered for an event and its corresponding place. Code in jade. Broadly speaking it is a list that shows the name of the person, in which table is located and how many guests have di...
asked by 27.10.2016 / 01:09
2
answers

Filter Angular JS by topic

I have a website with questions that are loaded with Angular JS . These questions have title, answer and subject to which they belong. I want to include an option to navigate between themes, on the one hand by clicking on previous and next, and...
asked by 16.11.2016 / 12:33
1
answer

How to capture a variable of a while to delete a specific data

Hi, thanks, first of all, I'm new to programming and I've really searched and searched and I have not gotten information about it. This is what happens, I need to delete a field from the database and a confirmation appears but I can not capture...
asked by 23.11.2016 / 23:47