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/ | |
 | Make fitness a way of life
Sign up at a 24 Hour Fitness near you for a 7 day free trial. Join a class and find a community!  | From our sponsors | | |
[ASK] Secara umum kan apabila tombol OK di klik, d... Oct 1st 2013, 03:13, by Yudha Maulana | [ASK] Secara umum kan apabila tombol OK di klik, dia akan beralih ke halaman lain walaupun di controller sendiri ga dimasukin script $this->load->view //(CI)
nah pertanyaan ane biar pas di klik OK halamannya ga kemana2 gmn ya? tp fungsinya ttep jalan. trims :D |
| | keyword nya? |
| | kalau pakai google chrome coba Ctrl+Shift+J, Lihat diconsole, errornya apa ? Biasanya ada Error Javascriptnya #goodluck |
| | pake jquery. ok nya type button $('#btn_ok').click(function(e) { ...... e.preventDefault(); }); |
| | ajax post |
| | tombol OK jangan type=submit, tetapi type=button. implementasinya bisa pake #ajax, mudahnya pake #jquery |
| | itu ntar ttep masuk DB ngga gan? |
| | bisa pake ajax, di controllernya dipisahin mana request dari ajax dan bukan. misalnya kalo bukan ajax cuman form aja, kalo dari ajax form + detail data dari NIM yg dimasukkan. if ($this->input->is_ajax_request()) { //proses data } else { //tampilkan form } | | |
|
Tidak ada komentar:
Posting Komentar