|
 |
|
ขอตัวอย่าง การดู Error ของ Jquery เพราะว่า มันไมฟ้อง ว่า error บรรทัดไหน |
|
 |
|
|
 |
 |
|
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

|
|
 |
 |
 |
 |
Date :
2012-03-25 11:53:35 |
By :
phongsiris |
View :
975 |
Reply :
1 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
copy error ของคุณมาให้ช่วยดูง่ายกว่าน่ะครับ  
|
 |
 |
 |
 |
Date :
2012-03-25 13:51:07 |
By :
mangkunzo |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|