What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-30 17:51:03
what's the logic of ajax
function loadDoc() { //step 1. as you clearly understand var xhttp = new XMLHttpRequest(); //step 2. Here you are defining the function that should run once the data is 'ready' xhttp.onreadystatechange = function() { if (this.readyState == 4 ... Add solution -
Javascript 2021-09-25 20:37:02
xmlhttprequest javascript
var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { // Typical action to be performed when the document is ready: document.getElementById("demo").i... Add solution -
PHP 2021-09-08 09:39:01
create a random question generator php
<?php //Connect with mysql $db = new mysqli("host","user","pass","db"); //Perform the query to choose random questions $query = $db->query("SELECT * FROM `table` ORDER BY RAND() LIMIT 2... Add solution -
Javascript 2021-08-26 19:26:01
AddToAny Share Starter Snippet
<div class="a2a_kit a2a_kit_size_32 a2a_default_style"> <a class="a2a_button_facebook"></a> <a class="a2a_button_twitter"></a> <a class="a2a_dd" href="https://www.ad... Add solution