Extjs4 connection example

extjs Ext.data.Connection example

    	    	var conn = Ext.create('Ext.data.Connection');
    	    	//define a variable to parse json String returned from server.
                var resul = {
    	    		success: false,
    	    		msg: ''
    	    		url: './addTempPlan.action',
    	    		callback: function(options,succ,response){
    	    			resul = Ext.JSON.decode(response.responseText);
 the server: String json = "{\"success\":true,\"msg\":\"execute success!\"}";

One thought on “Extjs4 connection example

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s