-
31 May 2012 10:53 PM #1
Extj 4.0 Example with plane java file.
Extj 4.0 Example with plane java file.
Can some one tell me . How to pass data from ajax to server side by using json
-
1 Jun 2012 4:02 AM #2
You can use the Jackson library: http://jackson.codehaus.org/ that can take care of your JSON in both directions. For the Client -> Server direction, e.g. : http://stackoverflow.com/questions/3...ode-in-jackson
-
1 Jun 2012 6:15 AM #3
Wagner Thanks for ur reply, But I'm looking an sample example for reference , which will save the data into oracle table if i change editable grids. if you have any sample please provide.
-
1 Jun 2012 6:39 AM #4
Simple example
this send automatically request with jsonParam on param and json value on valueCode:var data = { name : 'Obama', status : 'President' } Ext.create('Ext.data.Store', { model : 'myModel', proxy : { type: 'ajax', url: 'cetimProject.search', extraParams : { jsonParam: data, } }, autoLoad : true });
NB: you can use Ext.encode() and Ext.decode() for encoding and decoding the jsonObject on String


Reply With Quote