|
|
|
สอบถามปัญหาเรื่อง Ajax Realtime (PHP+MySQL & ASP+Access) |
|
|
|
|
|
|
|
ใช้ jquery ดีกว่าน่ะครับ Code สั้นมาก
Code (JavaScript)
<script type="text/javascript">
function bodyOnload()
{
var id = Math.random()*99999;
$.ajax({
type: "POST",
url: "getdata.php?abc="+id,
cache: false,
data: "uid=xxxxx&abcef=",
success: function(msg){
$("#spBudget").html(msg);
}
});
setTimeout("getData();",5000);
}
function getData()
{
bodyOnload();
}
</script>
<body Onload="bodyOnload();">
|
|
|
|
|
Date :
2014-08-21 08:51:34 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|