Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

In sencha touch 2 i am using store. In that store i am using proxy to call my asp.net project webservice. It will return a json format. But when i am using proxy inside store safari browser automatically is stopped. What is the reason? I poseted my code below

Ext.define
(
'eHelpline4.store.ServiceCategory',
{
extend: 'Ext.data.Store',
//requires:['myproject.model.ServiceCategory'],
alias: 'store.ServiceCategory',
// config:
// {
model: 'myproject.model.ServiceCategory',
storedId: 'servicecategory',
proxy:
{
type: 'ajax',
url: myurl,
scope: this,
extraParams:
{
method : 'servicecategory',
ModuleName : 'Incident' },
reader:
{
type: 'json',
rootProperty: 'data'
}
},
autoLoad: true,

//}
}
);

Here I have commented config. If I uncomment config throwing error. If i comment store is not loadig the value. Pleas suggest me.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900