Php Code
<?php Class semester extends CI_Controller { public function index() { echo '{"success":true}'; } } ?>
ExtJS Code
var form=this.up('form').getForm(); form.url = 'http://localhost/anju/index.php/semester'; form.method = 'POST'; form.submit({ success: function (form, action) { alert("Success: " ); }, failure: function (form, action) { alert("Failure: " ); } });
I couldn't make a success message so far :( can somebody tell me why it is failing ?