Selasa, 08 Oktober 2013

PHP Indonesia - Facebook: [ask]gan, gimana cara handling ajax post ketika da...

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. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Book your hotel early for a discount!

You can reap the rewards with great discounts at participating Pullman, M Gallery, Grand Mercure, Novotel, Mercure, ibis and Formule 1 hotels.
From our sponsors
[ask]gan, gimana cara handling ajax post ketika da...
Oct 8th 2013, 12:20, by Rere Saputra

Rere Saputra 12:20pm Oct 8
[ask]gan, gimana cara handling ajax post ketika data belum diisi?
jadi ketika data belum diisi ajax post tidak berfungsi
mohon pencerahan gan

$(document).ready(function() {
$("#frm").validate({
rules: {
limit : {
digits: true,
}
},
messages: {
limit: {
required: "harus diisi",
digits : "harus angka"
}
}
});
$().ajaxStart(function() {
$('#loading').show();
$('#result').hide();
}).ajaxStop(function() {
$('#loading').hide();
$('#result').fadeIn('slow');
});

$('#frm').submit(function() {
$.ajax({
type: 'POST',
url: $(this).attr('action'),
data: $(this).serialize(),
success: function(data) {
$('#result').html(data);
}
})
return false;
});

})
</script>

Made RaUciha 12:23pm Oct 8
jquery validate

Rere Saputra 12:24pm Oct 8
bukan itu yg ane maksud gan :3
handling ajax postnya ketika inputan belum diisi, yg itu ajax postnya tetap jalan kalo inputan tidak terisi

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