Jumat, 26 Juli 2013

PHP Indonesia - Facebook: mau tanya dong master,,,, di file A sy pny script ...

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 NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
mau tanya dong master,,,, di file A sy pny script ...
Jul 27th 2013, 03:27, by Apry Githu Adja

Apry Githu Adja 3:27am Jul 27
mau tanya dong master,,,,
di file A sy pny script
("#ok").click(function(){
("#page").hide();
});

("#halaman").load("B.php");

trus di file B ada
script
<form>
<button id="ok"> Tes </button>
</form>

yang mau sy tnyakan knpa <button id="ok"> yg berada di file B yg sya load ke file A tidak merspone ("#page").hide();

Aqge Priwibowo 3:55am Jul 27
karena domnya baru datang setelah eventnya di binding duluan, logikanya... ("#page").hide() ini belum pernah dilakukan, karena saat melakukannya di page belum ada di layar.
di Jquery sendiri ada banyak solusi untuk ini, coba kamu lihat "live", "on", dan "delegate"

Apry Githu Adja 3:59am Jul 27
jadi di ganti $("#ok")live("click",function(){
gtu y gan

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