Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > PHP > PHP Forum > ขอตัวอย่าง การดู Error ของ Jquery เพราะว่า มันไมฟ้อง ว่า error บรรทัดไหน



 

ขอตัวอย่าง การดู Error ของ Jquery เพราะว่า มันไมฟ้อง ว่า error บรรทัดไหน

 



Topic : 076084

Guest




Code (JavaScript)
var tid;
var sid;
var cid;
function getsubpanel(id){
	tid=id;
		if(tid!="0"){
			jQuery.ajax({
				url:"http://localhost/backup/index.php/crecord/data",
				type:"post",
				data:{tid:id},
				success:function(data){
					jQuery('#txtdata').show();
					jQuery('#txtall').hide();
					jQuery('#txtcount').hide();
					jQuery('#txtloc').hide();
					jQuery('#txtdata').html(data);
					jQuery('#expedition').hide();
						}
					});
		}else{
			jQuery('#txtdata').hide();
			jQuery('#txtcount').hide();
			jQuery('#txtloc').hide();
            jQuery('#expedition').hide();
			jQuery('#txtall').hide();
		}
}
function getsubtable(tid,id){
	if(id!="0"){
			jQuery.ajax({
				url:"http://localhost/backup/index.php/crecord/showall",
				type:"post",
				data:{tid:tid,id:id},
				success:function(data){
					jQuery('#txtall').show();
					jQuery('#txtall').html(data);
					getexpone(tid,id);
					getlocashow(tid,id);
                    getexpdition(tid,id,cid='',lid='');
					}
				});
	}else{
		jQuery('#txtcount').hide();
		jQuery('#txtloc').hide();
        jQuery('#expedition').hide();
		jQuery('#txtall').hide();
		
	}
}
function getlocashow(tid,id){
if(id!="0"){
	jQuery.ajax({
		url:"http://localhost/backup/index.php/crecord/getloca",
		type:"post",
		data:{tid:tid,id:id},
		success:function(data){
		jQuery('#txtcount').show();
		jQuery('#txtcount').html(data);
		getexpone(tid,id);
		}
	});
	}else{
		jQuery('#txtcount').hide();
		jQuery('#txtloc').hide();
        jQuery('#expedition').hide();
		jQuery('#txtall').hide();
	}
}
function getlocs(tid,id,cid){
		if(id!="0"){
			jQuery.ajax({
			url:"http://localhost/backup/index.php/crecord/getloc",
			type:"post",
			data:{tid:tid,id:id,cid:cid},
			success:function(data){
				jQuery('#txtloc').show();
				jQuery('#txtloc').html(data);
                getexpdition(tid,id,cid,lid='');
				getexpone(tid,id);
				}
			});
		}else{
			jQuery('#txtloc').hide();
		}
}
function getall(tid,id,cid,lid){
	$.ajax({
	url:"http://localhost/backup/index.php/crecord/getall",
	type:"post",
	data:{tid:tid,id:id,cid:cid,lid:lid},
	success:function(data){
		jQuery('#txtall').show();
		jQuery("#txtall").html(data);
        getexpdition(tid,id,cid,lid)
		getexpone(tid,id);
				}
			});
}
function getexpdition(tid,id,cid,lid){
    //alert(lid);
	//alert('test');
    if(id!="0"){
		jQuery.ajax({
		url:"http://localhost/backup/index.php/crecord/expedtion",
		type:"post",
		data:{tid:tid,id:id,cid:cid,lid:lid},
		success:function(data){
			jQuery('#expedition').show();
			jQuery('#expedition').html(data);
			getexpone(tid,id);
		}
		});
    }else{
        jQuery('#expedition').hide();
    }
}
function getexpall(tid,id,cid,lid,idexp){
    //alert(tid);
    //alert(id);
    //alert(cid);
    //alert(lid);
    //alert(idexp);
    if(id!="0"){
    jQuery.ajax({
	url:"http://localhost/backup/index.php/crecord/getall",
	type:"post",
	data:{tid:tid,id:id,cid:cid,lid:lid,idexp:idexp},
	success:function(data){
		jQuery('#txtall').show();
		jQuery("#txtall").html(data);
				}
			});
     }else{
	 	
	 }
                        
}
function getexpone(tid,id){
	//alert(tid);
    //alert(id);
	if(id!="0"){
		jQuery.ajax({
		url:"http://localhost/backup/index.php/crecord/expedtions",
		type:"post",
		data:{tid:tid,id:id},
		success:function(data){
			jQuery('#expedition').show();
			jQuery('#expedition').html(data);
		}
		});
    }else{
        jQuery('#expedition').hide();
    }
}
function getexponeall(tid,id,idexp){
	//alert(tid);
    //alert(id);
    //alert(idexp);
	if(id!="0"){
    jQuery.ajax({
	url:"http://localhost/backup/index.php/crecord/getexpialls",
	type:"post",
	data:{tid:tid,id:id,idexp:idexp},
	success:function(data){
		jQuery('#txtall').show();
		jQuery("#txtall").html(data);
				}
			});
     }else{
	 	
	 }
}
function getexps(id){
//alert(id);
//alert('test');
	if(id!=""){
		jQuery.ajax({
		url:"http://localhost/backup/index.php/crecord/gexps",
		type:"post",
		data:{id:id},
		success:function(data){
			jQuery('#txtall').show();
			jQuery('#txtall').html(data);
		}
		});
	}else{
		
	}
}
function getlocal(id){
	//alert(id);
	if(id!="0"){
		jQuery.ajax({
		url:"http://localhost/backup/index.php/crecord/getlocalhost",
		type:"post",
		data:{id:id},
		success:function(data){
			jQuery('#local').show();
			jQuery('#local').html(data);
			jQuery('#txtall').hide();
			}
		});
	}else{
		jQuery('#local').hide();
		jQuery('#txtall').hide();	
	}
}
function getlocality(local,id){
//alert(local);
//alert(id);
	if(id!="0"){
		jQuery.ajax({
		url:"http://localhost/backup/index.php/crecord/locality",
		type:"post",
		data:{local:local,id:id},
		success:function(data){
			jQuery('#txtall').show();
			jQuery('#txtall').html(data);
		}
		});
	}else{
		jQuery('#txtall').hide();
	}
}





ขอคุณมาก ครับ



Tag : PHP, jQuery







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2012-03-25 11:53:35 By : phongsiris View : 922 Reply : 1
 

 

No. 1



โพสกระทู้ ( 3,844 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท Hall of Fame 2012

สถานะออฟไลน์
Twitter Facebook

copy error ของคุณมาให้ช่วยดูง่ายกว่าน่ะครับ






แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2012-03-25 13:51:07 By : mangkunzo
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ขอตัวอย่าง การดู Error ของ Jquery เพราะว่า มันไมฟ้อง ว่า error บรรทัดไหน
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 05
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่