Tuesday, February 11, 2020
Load otomatis
Javascript :
<script type="text/javascript">
function Ajax(){
var $http,$self = arguments.callee;
if (window.XMLHttpRequest) {$http = new XMLHttpRequest();}
else if (window.ActiveXObject) {
try {$http = new ActiveXObject('Msxml2.XMLHTTP');}
catch(e) {$http = new ActiveXObject('Microsoft.XMLHTTP');}
}
if ($http) {
$http.onreadystatechange = function(){
if (/4|^complete$/.test($http.readyState)) {
document.getElementById('txtAuto').innerHTML = $http.responseText;
setTimeout(function(){$self();}, 1000);
}
};
$http.open('GET', 'load.php' + '?' + new Date().getTime(), true);
$http.send(null);
}
}
</script>
<script type="text/javascript">setTimeout(function() {Ajax();}, 1000);</script>
<label id="txtAuto">...</label>
//==================================================================//
Subscribe to:
Post Comments (Atom)
Mengganti Icon Marker Di Maps
Creating an icon https://leafletjs.com/examples.html var greenIcon = ...
-
Permission Internet < uses-permission android :name ="android.permission.ACCESS_FINE_LOCATION" /> < uses-permission a...
-
Button Add public boolean onCreateOptionsMenu(Menu menu) { menu.add(0, 1, 0, "Add New").setIcon(R.drawable.add); ...
-
Link Ke Koordinat XML <EditText android:background="#dddddd" android:id="@+id/txttelepon...
No comments:
Post a Comment