Questions tagged as 'javascript'

0
answers

Problem with Json to load data in gmaps api

I'm using Rails in a college project and added the Gmaps API to my project, in it I want to display multiple points on the map by taking the coordinates of a < in JSON to create the cluster . But the function I did not work in any way, t...
asked by 05.11.2017 / 20:37
0
answers

ns_error_not_available when put on the web server

I did a mini game on localhost and everything was working perfectly .. Then I uploaded it to the web server and the game started to crash with the error "NS_ERROR_NOT_AVAILABLE:". ... var spriteSheet = new Image(); var player = new Sprite(spri...
asked by 05.11.2017 / 19:09
0
answers

How to calculate Mbps?

I'm getting information from the interface of an internet modem: TXBytes, RXBytes, Uptime It gives me a json entry: Entrada=([[ { "uptime":"15423", "txbytes":"1147089", "rxbytes":"23124634" } ]]) Tab = json.cod(Entrada)...
asked by 11.10.2017 / 05:25
0
answers

Insert Date today input - Angular

I'm maintaining an angular code, but I do not know much about version 1 of this framework, how do I put today's date in this input? Does anyone have any ideas? <input disabled type="text" class="form-control dateinput" datepicker-popup="{{f...
asked by 10.10.2017 / 16:53
3
answers

Why use getElementById if the id is in the window?

Recently in my study I noticed an object that manipulated the DOM of the element that had the same name in its id . teste.style.border = '1px solid #CCC'; teste.style.width = '500px'; teste.style.height = '50px'; <div id="teste">...
asked by 13.04.2016 / 14:23
0
answers

My table does not show the data even though the code is the same

I can not understand why I do not display records in my table when I change the reference to dataTable2.js , even though the code is the same as the example that shows the data. If you can help me with this jQuery and dataTable , tha...
asked by 22.10.2017 / 20:51
1
answer

Submit form with event when checking radio bootflap buton

I'm using this responsive HTML library ( link ) and I want to submit a form when I click on a radio button. The problem is that as there are several "layers" of divs above the radio button, this is not checked directly, and then the submit event...
asked by 29.10.2017 / 01:14
1
answer

JS / jQuery - Multiple tasks at a button

I'm inserting data from a json file into an html div, content is added from a button. everything is working! I just want to replace the contents of the div with each click of this button. ex: 1) First click: the name of person 1 is display...
asked by 28.10.2017 / 19:36
1
answer

Trigger event when clicking off element

I'm having a problem with an AngularJS 1.6 implementation. I need to trigger an event by clicking outside a div element for example. Note: ng-blur only works with form fields. <li class="dropdown-toggle" ng-controller="SearchCtrl as c...
asked by 10.10.2017 / 02:35
1
answer

Querying data by single input ID - AJAX

I'm developing an application and in it, I have a method of searching clients by name, right at the beginning, I collect basic information for each client. Follow the code: function atualizaGrid(){ if ($("#filtrar").val()) filtro = "/"...
asked by 08.10.2017 / 00:46