0
  1. Php Code

     <?php
       Class semester extends CI_Controller
       {
         public function index()
          {
            echo '{"success":true}';
          }
       }
     ?>
    
  2. 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 ?

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Bijoy
  • 399
  • 2
  • 7
  • 15

0 Answers0