Posts by Froslass • 55 points
10 posts
-
-1
votes2
answers43
viewsQ: I cannot access the index of a for inside addeventlistener
docReady(function () { var arr = ["usuario/cadastroum"]; var lis = document.querySelector(".metro").getElementsByTagName("li"); for (var i = 0; i < lis.length; i++) {…
-
0
votes1
answer44
viewsQ: How to define the same INNER JOIN for different fields related to the same table
I have a problem which is this, in the mysql i have a table portaria who has a Fk_key with the table usuario, which is who authorizes, and, a relation N to N with the table usuario for those who…
-
0
votes1
answer53
viewsQ: My session is not being destroyed -PHP-
I have the following code on a user page: public static function destruirSessao() { if (isset($_SESSION)) { session_start(); unset($_SESSION["codigo"]); unset($_SESSION["nome"]); session_destroy();…
-
1
votes1
answer7438
viewsQ: Input CPF mask in html form (no plugin)
I wanted a simple input mask, just to put 999.999.999-99, dots and the last dash in the field of Cpf, no check, no nothing, simple, and no plugin just code, if I’m not mistaken have the regrex or…
-
1
votes1
answer1128
viewsQ: How to change the class of a component in Html using Javascript?
wanted to know how to change the class of a div html in Javascript <div id="showmodal" class="modal fade" id="myModal"> I want to change the name class = "modal fade" to "modal fade in" in…
-
0
votes0
answers255
views -
1
votes1
answer134
viewsQ: My POST is not sending anything
IN HTML: <form method="post" action="../../../consulta.php"> <input type="text" class="form-control" name="login" id="flogin" placeholder="Insira o seu Login"> <input type="submit"…
-
0
votes1
answer56
viewsQ: How do I pick up php variables and move to a different JS file with ajax?
Next I want to pass a php variable to Javascript only in different files, I have a code template that is this: $(document).ready(function(){ $("#botao").click(function(){ $.ajax({…
-
0
votes1
answer252
views -
0
votes1
answer326
viewsQ: How can I send a PHP variable on one page to another Javascript page using Ajax?
Hello, people, I’d like to know how to send a php variable to another javascript document through Ajax. The PHP variable in question is this: $json = json_encode(simplexml_load_string($show)); Here…