Questions tagged as 'javascript'

0
answers

Why does it only work as expected the second time?

I have this function: for (var i in chars) { chars[i].walk(); for (var j in chars) { if (i != j) { collision(chars[i], chars[j]); action(chars[i], chars[j]); } }...
asked by 02.08.2017 / 00:30
1
answer

How to create a shortcut on a site's desktop when using chrome?

I would suggest to the user when he enters my system to create a site shortcut on his computer, this can be done manually by going to "Mais Ferramentas -> Adicionar a área de trabalho" : How could I do this programmatically? is...
asked by 01.08.2017 / 17:07
0
answers

Insert onclick event into dynamically created input

I have a table where the user can insert a row in the table and then delete it if necessary. To do this, when it adds a row, in the second cell I enter two cells. One contains the content and the other a dynamically created button. My problem is...
asked by 27.07.2017 / 15:05
0
answers

How to reference Library Knockout.js installed via NPM

I installed the Knockout.js library via NPM, with the following command: npm install --save-dev knockout I noticed that NPM installs the module inside the node_modules / knockout folder, but I believe there is a way to include the script in...
asked by 04.03.2017 / 21:02
2
answers

How to read json in angular1?

I have the following json {"message": "457896","additionalData":{"google.message_id":"0:149534266","coldstart":false,"collapse_key":"com.ionicframework.lucasteste693113","foreground":true}} How can I give an alert to show all information?...
asked by 21.05.2017 / 08:13
2
answers

Loading with AngularJS

I have an object that indicates that the page is loading. However, it is not working correctly, it follows code: HTML: <div class="fundo_login"> <div class="carregando_inicio" ng-if="carregando == true"> //Quando carregando fo...
asked by 15.05.2017 / 21:23
1
answer

Manipulating RadioButton to have no value in any field

I need some help from you: I have two radiobutton , and I wanted to turn them into checkbox , only I can not change type to checkbox , in this radio I could make to select and to remove if you want. Could anyone help...
asked by 09.03.2017 / 13:51
2
answers

Angular error-animate: angular.module (...) .info is not a function [closed]

I'm trying to use angular animate, but to have the error in the console just import the angular-animate.js    Uncaught TypeError: angular.module (...). info is not a function       at angular-animate.js: 4139       at angular-animate.js: 4155...
asked by 08.03.2017 / 18:02
2
answers

Generate Image Thumbnails Before Uploading

I'm looking for a non-plugin solution that generates thumbs of selected images in <input type="file"/> , preferably with Javascript or max jQuery . The idea is to have something similar to this structure: <div cl...
asked by 15.03.2017 / 21:11
1
answer

Compare Attributes of a List with Javascript

Hello, I have an array with li, I need to compare the values of the attributes, they all need to be the same .. example .. I have 2 li within a ul <li onclick="controle.selecionarVolta(this)" data-id="3" data-name="Rotina 3" data-criar="...
asked by 12.01.2017 / 17:59