Posts by Paulo Henrique Queiroz • 419 points
8 posts
-
8
votes2
answers288
viewsQ: Decimal home approximation in Javascript
What is the reason for the behavior below? Why not give 3.3? I am running Javascript in the console and is returning this result. Number(1.1) 1.1 Number(1.1) + Number(1.1) 2.2 Number(1.1) +…
javascriptasked Paulo Henrique Queiroz 419 -
1
votes1
answer110
viewsQ: Paypal - invoices
I want to create the following environment: Some users will create some features on my site and for each task they will receive some money. When the user reaches a certain amount of money the user…
paypalasked Paulo Henrique Queiroz 419 -
1
votes3
answers298
viewsA: How to use Resources in . js file?
Hello, you’ve tried something like: var globalResource = '<%= Resources.MyClass.ResourceKeyValue %>';
-
3
votes2
answers1679
viewsQ: remaining characters textarea
I am writing this code which is to count the amount of characters remaining in a textarea. At first it seemed very simple and has enough documentation on the internet. But I realized that when I…
-
3
votes5
answers29209
viewsA: Reset to input fields after Ubmit with Jquery
Complementing the previous answer to make the function more generic using javascript only, follow the code that works for other types of input. var elements = document.getElementsByTagName("input");…
-
4
votes1
answer2727
viewsQ: Select list option selected with Angularjs
I’m implementing a select list that has as options the Brazilian states. I would like to return the selected value according to the return of a web service. For example, if the service returns RJ…
angularjsasked Paulo Henrique Queiroz 419 -
9
votes3
answers7855
viewsQ: Prevent user from pasting special characters
I am creating a system in which the user must type in a input the mother’s name with only alphanumeric characters. I am using the code below that is working, but I noticed a flaw. Even allowing not…
-
2
votes2
answers762
viewsQ: It is possible to track the . js files that are called when running a Jquery event
For example, if an event click applied in a link call a function that is in the file A.js, which in turn needs the B.js, who needs the C.js. I wonder if you have how to know this dependency between…