Posts by paulojean • 471 points
14 posts
-
1
votes1
answer470
viewsA: Script conflict
Try associating events to a larger element, rather than associating them to elements within the index.html. Ex: Let’s say that at the click of an item in a list, you want it to perform a certain…
-
1
votes1
answer209
viewsA: Adding selected columns together
It needs some improvements, but the algorithm can stay like this OBS: as column 0 is the description, the value of resultadoCheckboxes[0] will always be 0; Here there is an example (I put inside a…
-
0
votes1
answer37
viewsA: Duplicate files in Appmanifest.xml.
Here informs that you need to do the build of the application again and, if this does not resolve, should access the Appmanifest.xaml manually and search for duplication. NOTE: the link is about…
-
3
votes2
answers108
viewsA: Click Subitem menu brings up level id
The problem is that when you click on a sub-item, you are also clicking on the menu. Hence, you predict to validate the clicked item carregarPaginas(); function carregarPaginas() {…
-
1
votes1
answer1876
viewsA: Line break Json
It is necessary to devise the th associated with tr (in your case, of thead), otherwise Jade will interpret as everyone being on the same level as thead. table(class="table well") thead tr th ID: th…
-
2
votes2
answers2392
viewsA: How to make setTimeout run "infinitely"
Use setInterval, which does basically but same thing, but repeating every period <script type="text/javascript"> var timeInterval = null; $(document).on('mouseover', function() { if…
-
1
votes3
answers73
viewsA: What is the best option to use in relation to performance
The first will be executed faster, since it will only be necessary to find all elements with product class, while the second code will have to find those same elements and then check its attribute…
-
3
votes1
answer53
viewsA: Class standards
With the first case, you will have a function greet for each instantiated variable. For example, if you instantiate two variables MyClass, each will have their own greet. With the second case, all…
-
6
votes2
answers512
viewsA: How to pass javascript value to AJAX
The problem is that with var campoNomeEmpresa = document.getElementById('fTxtCadastroNomeEmpresa'); you get an element from DOM. I believe you want to send the value or text, if that’s the case, do…
-
4
votes8
answers794
viewsA: Mapping an array with possible subarrays as elements
there are already some answers here, but I think there’s a more "clean": function flatten (elemento){ if(Array.isArray(elemento)) return elemento.reduce(function(anterior,atual){ return…
-
1
votes2
answers87
viewsA: Add new Controller
In that question seems to be exactly the same problem you found. The suggestion (which, according to the author of the question, worked for him too) was to add the following setting to the…
-
2
votes3
answers7855
viewsA: Prevent user from pasting special characters
An alternative is, as already said, to prevent the user from pasting. Another would be to use a code that checks for any invalid character in the pasted text and, if any, clear the input, as the…
-
0
votes2
answers1514
viewsA: View Razor to PDF
What’s wrong with iTextSharp notation? Following the notation as is here worked with me, following the process: 1 - saving the content of the page I want to convert to pdf 2 - escaping tags (in…
-
3
votes2
answers171
viewsA: How to reset a selection menu (selectmenu) when changing another field using a function?
You forgot ". change()" when changing $("#prazoManual").on("change", function () { $('#menuPrazo').val('*').change(); });