Posts by João Victor • 787 points
65 posts
-
2
votes1
answer46
viewsQ: Websocket giving error in creation
I’m having trouble, while trying to run the websocket, it returns me the following error in the image the code I’m using is this: <?php $ip = 'localhost'; $porta = 8080;…
-
0
votes0
answers42
viewsQ: Sum all values of the table
I’m trying to sum all the values at once from the table, but it’s giving error, my code: mysqli_query($conexao,"SELECT SUM(entrada) FROM livro"); I believe that it is because the values are comma…
phpasked João Victor 787 -
0
votes1
answer69
viewsQ: Prevent page reload if there is something inside the div
How could I stop the recharge if there was something inside a div? and it would be possible to prevent by making another div appear with the notice confirmation request instead of the alert…
javascriptasked João Victor 787 -
1
votes3
answers33
viewsQ: Take the variable div’s attribute and send one at a time to another function
I’m trying to take the attribute of each div and send one at a time, but it’s giving error, the code I tried to do and this: function deletarTudo() { var lista = document.querySelectorAll("#lista…
javascriptasked João Victor 787 -
2
votes1
answer79
viewsQ: problem with parseint sum()
I’m trying to add more "1" with parseint() to the number but it always returns me the original number with "1" next to it, for example 10 + 1 it returns me 101 (hit mizeravi). Note: I am using the…
javascriptasked João Victor 787 -
2
votes1
answer94
viewsQ: Add and subtract values from various input’s after created or removed with appendchild and removeChild.
Well my problem is this, with the appendchild of Javascript I create an input with X value with its own ID but can be random, and add another with the same method with the same situation of the…
javascriptasked João Victor 787 -
3
votes1
answer471
viewsQ: Submit when typing text type input for php code on the same page
Would have some way when typing the form send the data to the PHP code without having to press the submit, simply typing in the text input? <form method="POST" action=""> <label>nome:…
phpasked João Victor 787 -
1
votes2
answers98
viewsA: Detect which Submit button was sent
I did it like it was for a checkbox type input, it was like this: <?php if(isset($_POST['F1'])){ echo 'f1 exite'; }else{ echo 'f1 não existe'; } if(isset($_POST['F2'])){ echo 'f2 existe'; }else{…
phpanswered João Victor 787 -
0
votes2
answers98
viewsQ: Detect which Submit button was sent
Is there any way to detect in php which Submit button was sent? To create a function, if one is clicked run one, if the other runs the other function? <form method="post" action=""…
phpasked João Victor 787 -
0
votes1
answer314
viewsQ: Auto Submit javascript
I’m having a problem using the "Submit();" function on an input type="file" with an onchage passing an id to the function, I ran a test with an Alert and it’s returning me "[Object…
javascriptasked João Victor 787 -
3
votes1
answer9463
viewsQ: Line break with css without <br>
I have this problem in css and I can’t solve, when the text gets too big, I can’t make this line break, I can’t use , someone has some idea? * { font-family: arial; -webkit-touch-callout: none;…
-
0
votes0
answers52
viewsQ: Time conversion function showing Nan
I have a small problem in the conversion of time of a video, I do not know why, but at the beginning of the total time appears "Nan", and after that starts playing the video to appear the total time…
-
2
votes1
answer107
viewsQ: setTimeout and clearTimeout giving error
I’m having problems with this Script, initially the purpose of it is just to show the controls while the mouse moves or clicks on the div, and when it stops moving it hides the controls after a…
-
2
votes1
answer263
viewsQ: Div appear only once
How to make a Div (not a pop-up, but more like a protective screen) appear once every 6 hours using Jquery and Cookies? I can’t use PHP because the platform I’m using is Blogger and it doesn’t…
-
1
votes1
answer343
viewsQ: Convert Html5 video time to hours, minutes and seconds - Javascript
I need a little help, I’m new here and I’m trying to create a custom video player, only I’m having a hard time in the time part, and I wanted someone to help me do just that, if possible, by…