Questions tagged as 'javascript'

0
answers

How to check the margin of an element?

I have a code to resize an element, I need to capture the resize from a margin of 18 pixels: $(document).on("mousedown",".image",function(me) { var move = $(this); var fm = matrix(this); var sv = scaleValue(this);...
asked by 08.08.2017 / 15:55
1
answer

how to do the ng-bind-html of a directive?

<!-- ng-bind-html de uma diretiva customizado não funciona --> <span ng-bind-html="customDirective"></span> <!-- é renderizado --> <choices-tab></choices-tab> //Assim funciona: $scope.customDirective = '<...
asked by 08.08.2017 / 03:10
0
answers

Insert edit points blocking user interaction

Using the Javascript Maps API, with this code below I'm creating a PoLyline , which would be a line on the map passing an array array in the path . See: Polyline maplines = new google.maps.Polyline({ path: groups[i].arrLatLng,...
asked by 09.08.2017 / 02:00
0
answers

Doubt about modularization in javascript

For some time, I've seen in code, including large JavaScript libraries, sections like this: if (module.exports) { // faça algo } //##### define({/* parametros */}) //##### import algumacoisa from biblioteca //##### var foo = require('bi...
asked by 10.09.2017 / 04:01
5
answers

Event is not tied to element

I have an event in jQuery (version 1.5) as follows: $('#refresh_abertos').click(function(){ // aqui o código irrelevante nesta pergunta }); It turns out that my #refresh_abertos element is only loaded later via ajax ,...
asked by 21.01.2014 / 14:25
0
answers

Decrypt IMAP email?

I am receiving emails in my application through IMAP, and everything is showing up the right way except the text that is encrypted, how do I decrypt or configure it to not be encrypted ?? I am using the node-imap library to receive and the...
asked by 22.08.2017 / 22:37
2
answers

Store a select array in a variable js

I need to run several select and store their value in an array with jQuery, but I can not. How can I do this?     
asked by 26.08.2017 / 03:03
1
answer

Customizing a JavaScript function [closed]

In addition to Width, Height and Resizable, what other attributes can be inserted into a function?     
asked by 25.08.2017 / 20:15
1
answer

First Child is not selected

I have the following code that generates a dynamic slider , but the first-child property does not work. What is the problem? var elementoSlider = $('#dados-slider'); var mostraImagem = ""; var mostraDadosImagem = ""; $('ul.slider li:fi...
asked by 23.08.2017 / 20:44
1
answer

Converting Word to bits - JavaScript and WebServer CLP Siemens

I'm getting a PLC variable, which is a Word (16). However, I can not 'convert' this 16-bit Word with their respective values (true or false). 1 Word = 16 bits. I get the word 'full' value. More details: This is a WebServer applicatio...
asked by 23.08.2017 / 21:15