Posts by Pablo Carvalho • 168 points
7 posts
-
3
votes3
answers73
viewsQ: Javascript object always being created in growing order
I’m dealing with a similar code in a project: var groupedObject = {}; groupedObject['2016'] = {}; groupedObject['2022'] = {}; groupedObject['2014'] = {}; groupedObject['2021'] = {};…
javascriptasked Pablo Carvalho 168 -
2
votes1
answer53
viewsA: .Each in two elements with values in different variables
If you know that there are only two inputs one for initial and one for final you do not need to go through with each Just take the first and last element with the class hora: var horaInicial =…
-
1
votes2
answers136
viewsQ: Window in visual studio when debugging method
I’ve been dealing with some very robust methods that alter or insert data into several tables. It is time consuming to debug and map all tables that are affected by routine. Is there a window like…
-
1
votes1
answer54
viewsA: Carousel rotation, cannot read null "style" property
Testing your code the error I had was not in the length property of any of your querySelectorAll. I got error declaration of carousel setTimeout. I believe you need to change this line of code:…
-
1
votes1
answer331
viewsQ: Subtract from a number the values to your right in a list
I have a situation that is as follows: given an array with for example 5 positions [5, 10, 8, 2, 7] I need an algorithm that allows me to do the following: Take the 5 and subtract by the numbers…
-
1
votes2
answers240
viewsA: Style input through jQuery Validate
The structure of the object you are passing to the Validate() function seems to be wrong. Rules{},messages{} must be separated. As it did, the message object seems to be the child of the Rules…
-
5
votes3
answers119
viewsQ: Why declare property twice in one class?
When declaring a property in one class, they usually declare twice, one public and the other private. What is the purpose? private int _years; public int Years { get { return _years; } }…