Posts by Leandro Amorim • 1,865 points
59 posts
-
0
votes6
answers1877
viewsA: Code refactoring to convert GPS coordinates into DMS format into an array
I still can’t add comments The meaning of regular expression is to find patterns, and somehow validate them. This way it would be interesting to know if the received string is valid.…
-
0
votes4
answers967
viewsA: Accessing dynamically generated form fields.
See if I understand your question, you want to access the clones in javascript. If there are any possibilities I will address some. Using each $(".equipamento").each(function() { var obj = $(this);…
javascriptanswered Leandro Amorim 1,865 -
1
votes1
answer277
viewsA: Is it possible to use sub-groups?
If I could understand your question, this would be your answer: Jsfiddle I pulled out the group: datasSolicitacao: "filtro.dataInicialSolicitacao filtro.dataFinalSolicitacao", datasLiberacao:…
-
-1
votes5
answers3608
viewsA: Can the browser "remember" a password programmatically?
Your main question is where to store? With the security you want to implement, it would be interesting to store? Let’s go in pieces. Storage that we have today in browsers are all XSS-capable. The…
-
6
votes4
answers13140
viewsA: What is the difference between operators '==' and '==' in Javascript?
== makes value-only comparison === makes value and type comparison if (1 == "1") // retorna true if (1 === "1") // retorna false Same thing with =! and ==! only the command is negation, returns true…
-
0
votes4
answers1904
viewsA: How to control when localstorage data expires?
There really is no expiration date for this data, what you can do is control by javascript when the user accesses the application you check if it is time to expire the data, and do the reload, or…
-
1
votes3
answers918
viewsA: Alternative to check if the window is a popup
I found this information on msdn is a matter of security even. I would use the approach of when it is necessary to open the popup put in a Dialog using jqueryui or another framework. Open popup is…
-
4
votes3
answers243
viewsA: "Unclosure" a closure
Javascript (JS) does not have an explicit memory manager, the browser decides when to clean it. Sometimes there may be a loss of efficiency in JS rendering due to a pause for garbage collection (GC…
-
4
votes8
answers67841
viewsA: How to export an HTML/PHP page to PDF
Use the FPDF take a look at http://www.fpdf.org/ it is very interesting this library.…