Posts by Julio Gomes • 36 points
4 posts
-
1
votes1
answer146
viewsA: Save time user watched video and continue watching
I recommend you use Ajax Here’s a feature to send data to the server without updating the page. function SendDataToServer(_data) { var xmlhttp = new XMLHttpRequest(); // xmlhttp.onreadystatechange =…
-
1
votes3
answers155
viewsA: How do I play an input value without submitting a form or button
Francisco Eduardo is right. Here’s a simple example for Ajax HTML <form onsubmit="return OnSubmitData(this)"> <input type="text" name="teste"> <button…
-
-1
votes1
answer37
viewsQ: Class method returns null
I have a class to pass data but when I call the class method this data appears as null. Why? class Test { constructor(data) { this.myData = data; } MyFunction = () => { return this.myData; }; }…
-
0
votes2
answers72
viewsA: How to show Json fields with PHP
$jsonVar = json_decode('{"p0":"Quantos anos?","p1":"Qual sua altura?","r0":"12","r1":"1.65"}'); function mostrar($jsonVar) { foreach ($jsonVar as $key => $value) { $pergunta = "none"; $index =…