tags:

views:

179

answers:

3

Iam trying to store the state in thedb through webservice.

Iam using Http State Provider to do so.

Iam getting an error in the following line saying object expected. Ext.state.Manager.setProvider(new Ext.state.HttpProvider({ url: 'GetGridState.asmx/readdata' }));

Please help me in this issue.

A: 

You should probably use firebug or even alerts if nothing else to see if maybe you're not passing an object where you should be.

apphacker
Iam getting the following error in firebug sayingExt.state.HttpProvider is not a constructor
xrx215
xrx215 - it sounds then like your version of ExtJS doesn't include HttpProvider.
Jamie Love
A: 

Are you using the correct version of ExtJS? It looks like there is no more Ext.state.HttpProvider in ExtJS 3.1.

Li0liQ
Iam making use of following thread to do this.http://www.extjs.com/forum/showthread.php?p=424107#post424107
xrx215
A: 

Sounds like you have not included the HttpStateProvider class code correctly, or included it after the code that is trying to use it. Double-check that if you are referring to an external js file, it is loaded properly and in the right order.

bmoeskau