PDA

View Full Version : Using HttpStateProvider user extension



emmy mathew
21 Jul 2010, 4:37 AM
Hi

I tried using

Ext.state.Manager.setProvider(new Ext.ux.state.HTTPProvider({
url:'state.htm',
user:'user',
session:'session',
id:'1',
readBaseParams:{cmd:'readState'},
saveBaseParams:{cmd:'saveState'},
autoRead:false,
logFailure:true,
logSuccess:true
}));


Ext.state.Manager.getProvider().initState([{"name":"grid","value":"o%3Acolumns%3Da%253Ao%25253Aid%25253Ds%2525253Acompany%25255Ewidth%25253Dn%2525253A419%255Eo%25253Aid%25253Ds%2525253Aprice%25255Ewidth%25253Dn%2525253A75%25255Ehidden%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2525253Achange%25255Ewidth%25253Dn%2525253A75%25255Ehidden%25253Db%2525253A1%255Eo%25253Aid%25253Ds%2525253AperChange%25255Ewidth%25253Dn%2525253A75%255Eo%25253Aid%25253Ds%2525253AlstUpdated%25255Ewidth%25253Dn%2525253A85%5Esort%3Do%253Afield%253Ds%25253Acompany%255Edirection%253Ds%25253AASC"}]);


how to retrieve the (column names) parameters in state.htm so that i can use them in another file?