Questions tagged as 'javascript'

1
answer

How to add a button in the columns in the datatable

I'm trying to add some buttons in the DataTable using columnDefs , but I can not, and when I remove some columns, it does not align in the order My current code is this: var grid = $("#grid").dataTable({ "language": { "url...
asked by 21.08.2014 / 17:24
2
answers

Add thousandths in the jquery counter

I'm having a Javascript code that does a Days / Hours / Minutes / Seconds counter. But I need it also count the thousandths, but I have little knowledge in javascript and I do not know how to increase this option. The code that counts up is as...
asked by 20.08.2014 / 08:51
1
answer

touchEnter / touchLeave do not work

Talk the guys! My question is this: Why are these touch events not being recognized when I tap the DOM element, or when I leave it? var canvasControlsHUD = document.getElementById("canvasControlsHUD"); canvasControlsHUD.addEventListener('touc...
asked by 17.08.2014 / 19:43
1
answer

Set the Fullcalendar to initially display the week tab instead of the month

Personally I have very little knowledge in js, however I'm kind of trying to sort out the fullcalendar for a system I'm creating. I need instead of it to initialize directly by "month", I would like the first screen to be "week".     
asked by 21.08.2014 / 01:24
1
answer

Compare the distances of the top of an element with the following next ()

I'm getting the following error in the console:    Uncaught TypeError: Can not read property 'top' of undefined He is saying that the error occurs on the following line: alturaproximo = $(this).next().offset().top; Follow the code:...
asked by 18.08.2014 / 18:36
1
answer

How to get a value from a list

I need to get the value generated in the $ {stores.nmFrameLocator} field and give value display in the alert: storeMap () <script> function lojaMapa() { var tc = document.getElementById("dados-frame-resultado"); alert...
asked by 29.10.2014 / 15:01
2
answers

How to insert data taken from a JSON file and put in a list with AngularJS

app.js (function(){ var myApp = angular.module('loja', []); myApp.controller('CarrinhoController', ['$scope','$http', function($scope, $http){ $scope.title = 'Lista de Produtos'; $http.get('js/produtos.json').succe...
asked by 31.10.2014 / 04:53
1
answer

How to open an image in a new tab when clicking it and block page without parameter?

I'm with the CSE search on my site, and I even asked that question: How to change URL objects via JavaScript? , and was wondering if you have how to create a script that page images open in a new tab when they are clicked. And I wanted the u...
asked by 03.11.2014 / 15:47
1
answer

Ajax after page fully loaded

I have a very slow code running on the server side, to avoid the delay in rendering on the page, I decided to call the function via ajax after the page loaded, I used both ways but both did not work: With $(document).ready the p...
asked by 26.10.2014 / 02:05
3
answers

Gantt chart using C3.js: How to use axis Y category or Y timeseries?

I'm looking for a solution inside the java library C3.JS (Based on D3.JS) where I can create a graph that shows over a period the types of certain thing being used and interleaved. A small example: Well,Itriedtousevarchart=c3.generate({...,ax...
asked by 27.10.2014 / 13:08