Questions tagged as 'javascript'

1
answer

During testing, the instance of a class returns undefined

A bit of context.    I'm creating a plugin using tests and when using the instance of a class, it just does not pass the simplest test.       The plugin is an adapted copy of the Satellizer a well-known module angular that manages ac...
asked by 11.04.2017 / 23:09
1
answer

Obtain PROMPT values with AJAX

Good evening. How can I get the values that have been entered through a JS prompt to use that data in a database? I understand that it is with AJAX, and I have developed this code, but it does not take any action on the code. <!-- Cam...
asked by 24.05.2017 / 23:20
1
answer

when running the route the node sends me this message: Error: Can not set headers after they are sent

When accessing the route you specify, the files that I have in the public folder are not loaded, only some are loaded and in the nodejs console you send me the following message: Error: Can't set headers after they are sent. at SendStream...
asked by 29.05.2017 / 00:24
2
answers

How to run a PHP with Ionic 2

By making the request of my-php.php by GET of Http I literally retorted the code of the php file in a text string , what I need is that the file php be executed and I return the result of the query to the database in Json f...
asked by 25.05.2017 / 01:21
1
answer

DataTables warning: table id = T_Pd - Invalid JSON response

I have the JSON invalid response problem but the answer is correct. My problem is that I want to bring data to a JQuery DataTable, by means of an AJAX query sending 3 parameters. the part that fails is when it brings the answer in JSON format...
asked by 05.06.2017 / 22:36
0
answers

I want to create an object within another, but I can not use adds in sprite - HaxeFlixel

I want to create a box with a coin, which appears when I destroy it. The problem arises when I break the box, the currency appears but it is invisible because I can not do add in the states . How can I create the coin in another way so t...
asked by 02.06.2017 / 21:25
1
answer

Log in with FaceBook

I am trying to make the connection with FaceBook from my web application but it is not working, previously it worked correctly. This is the way I declare the script in the parent template so to speak, since I'm using the model MVC of...
asked by 25.07.2018 / 00:59
1
answer

Problems in detecting object collisions

Recently I started to develop a game that consists of throwing a ball and getting it to take place (in this case in a rectangle), which has been a parabolic shot in full force.    In the game there are different objects:       · The basket (...
asked by 06.04.2017 / 20:33
1
answer

Increase integer to Javascript object

I am practicing with objects and I have this method curarPersonas where it is supposed to add one to the variable personasCuradas each time it enters the function; but it only adds it once and in the second it does not even show it...
asked by 19.03.2017 / 15:42
1
answer

Why focus event is triggered 2 times?

I have an INPUT, I try to automatically register when the focus is on it. By making focus sent a message to ask if you are sure to record the current date (could be a mistake finger) and here is my problem, because the message is repeated 2 time...
asked by 10.04.2017 / 02:14