Sabtu, 20 Juli 2013

PHP Indonesia - Facebook: mau nanya, saat di host nangkep status sedang offl...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
mau nanya, saat di host nangkep status sedang offl...
Jul 21st 2013, 04:35, by Chang Sherly

Chang Sherly 4:35am Jul 21
mau nanya, saat di host nangkep status sedang offline trus itu napa yah ???
padahal kan sudah di online kan database atopun contentnya
//menangkap error dan men-set parameter global (timeout, dll)
$.ajaxSetup({
timeout: 10000,
cache: false,
error:function(x,e){
if(x.status==0){
alert('Anda sedang offline!\nSilahkan cek koneksi anda!');
}else if(x.status==404){
alert('Permintaan URL tidak ditemukan!');
}else if(x.status==500){
alert('Internal Server Error!');
}else if(e=='parsererror'){
alert('Error.\nParsing JSON Request failed!');
}else if(e=='timeout'){
alert('Request Time out!');
}else {
alert('Error tidak diketahui: \n'+x.responseText);
}
}
});

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar