Questions tagged as 'javascript'

1
answer

How to know the direction of the mouse wheel scroll

How to know the direction and amount of the scroll when scrolling with the mouse wheel? Browsers have different ways of passing information on the event object. Some use .wheelDelta , others .detail , and others (new genera...
asked by 12.07.2014 / 00:28
1
answer

Text box execute function when externally assigned a value to it in Javascript and HTML

I wanted to make a textbox perform a function when I assign a value to it by code, without user interaction. I have tried the events onChange , onInput , onKeypress , however they all depend on the user's contact with the te...
asked by 23.06.2016 / 07:06
4
answers

What is the difference between the functions var name = function () and function name ()?

I see in some codes different ways of defining a function, but I do not know the difference if it exists. What is the difference between these functions? Function 1 function teste(valor){ return (valor > 1) ? true : false; } Fu...
asked by 18.04.2014 / 00:35
0
answers

Lightbox via API

I have a Lightbox working perfectly fine, using: <!-- INICIO FORMULARIO BOTAO PAGSEGURO --> <form action="https://pagseguro.uol.com.br/checkout/v2/cart.html?action=add" method="post" onsubmit="PagSeguroLightbox(this, {...
asked by 08.07.2016 / 19:16
4
answers

What is the difference between the functions var name = function () and function name ()?

I see in some codes different ways of defining a function, but I do not know the difference if it exists. What is the difference between these functions? Function 1 function teste(valor){ return (valor > 1) ? true : false; } Fu...
asked by 18.04.2014 / 00:35
0
answers

Google Apps Script - Xml API has been suspended

I have a Google Apps Script script but I got the following error:    The Xml API has been suspended.    The API has been flagged as disapproved, which means that the resource should be avoided and can be removed later. Consider using another...
asked by 30.12.2016 / 13:23
2
answers

Select part of an image

Given the following image: How can I make javascript to select a country and paint it?     
asked by 25.05.2016 / 17:54
0
answers

Return pdf file from webservice with Node.js

Problem Context: There is an external webservice, which is not part of the domain of my application, which, when accessed directly via browser, takes the user to a loading web page that handles the request according to the parameters passed in...
asked by 25.05.2016 / 16:18
1
answer

javascript result for method in parameterized controller

I'm trying to send the result of a WebAPI that is consumed via javascript on the page to a method in the controller that will do a persistence with that data this is javascript $('#CodigoCep').blur(function() { var cep = $('#...
asked by 26.05.2016 / 04:50
0
answers

Angle mask directive 2 does not put the mask on when the screen starts

Hello, I made a directive in Angular 2 to put masks in some fields, one of them the zip code. It works fine, the only thing I could not do is still that when loading the data in the fields of the screen the value is with the mask, it only...
asked by 30.05.2016 / 21:06