ExtJSAJAXscreencast - Ext.data.Connection AJAXExtJS


var conn =Ext.data.Connection ();
conn.request ({
    URL  history.jsp
     
     {metaID metaID columnName  }
     (responseObject) {
        showHistoryDialog (responseObject.responseText);
    }
      () {
         Ext.Msg.alert (  );
     }
});

showHistoryDialog () URL



var conn =Ext.data.Connection ();

    //buton 
    showHistory() {
        (! =&&! =) {
            metaID = record.get (MetaID);
            grid.getGridEl () .mask ();
            conn.request ({
                URL  history.jsp
                 
                 {metaID metaID columnName  }
                 (responseObject) {
                    showHistoryDialog (responseObject.responseText);
                    grid.getGridEl () .unmask ();
                }
                 () {
                    grid.getGridEl () .unmask ();
                    Ext.Msg.alert (  );
                }
            });
        }
    }

showHistoryDialog()

GMailExtJS