$(document).ready(function(){
$("#loading_img").show();
$("#showAppointmentData").load("index.php?module=Appointment&action=GetAppointmentDataRelateAccount&record="+3368,function(responseTxt,statusTxt,xhr){
if(statusTxt=="success")
$("#loading_img").hide();
});
$("body").on("click",".browse_page a",function(event){
event.preventDefault();
var url=$(this).attr("href");
//แสดงแบบปกติ
$("#loading_img").show();
$("#showAppointmentData").load(url,function(responseTxt,statusTxt,xhr){
if(statusTxt=="success")
$("#loading_img").hide();
});
return false;
});
});
Thursday, August 20, 2015
ตัวอย่าง jQuery loadContent Show และคลิกลิ้งค์ให้โหลดภายในหน้านั้นได้เลย
Labels:
JavaScript,
jQuery
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment