Posts by Robson França • 621 points
4 posts
-
3
votes5
answers114
viewsA: Logical error while using If/Else
I believe your whole problem lies on this line: if ((A + B < C) || (B + C < A) || (A + C < B)) { I would put it like this: if ( (C < (A+B)) && (A < (B+C)) && (B <…
canswered Robson França 621 -
0
votes1
answer36
viewsA: .load DIV from another site and replacing URL after load
Well, considering it’s being read in Javascript, it’s possible to do this in several ways: With regular expressions This option tends to be more laborious, after all before you had a problem (change…
-
0
votes5
answers505
viewsA: Is it possible to listen to multiple buttons with a single addeventlistener() ? If it is possible How to do it with pure javascript?
I believe that the best solution is to create callback independently and indicate that it will be the callback of the buttons. For example: var adicionarValor = function(evt) { // Dentro do objeto…
-
46
votes6
answers32253
viewsA: What is the best way to create a PHP login system
The best authentication is non-authentication Follow some recommendations: Don’t invent the wheel If possible use other sites to authenticate on yours. There is Openid technology that allows this,…