View Full Version : Load list from store using scripttag - please help

28 Jul 2011, 12:09 AM

I'm not able to load my list from JSON response. The request is made at cross domain level. i have tried all the examples.But, nothing seems to work out for me. I'm using 'scripttag' to make cross domain call . But sencha is appending stcCallback1001 to the callback. Please help .


Server response

stcCallback1001({"success":true, "msg" : {"savedDeals":[{"dealId":"17","dealName":"$2 Off Any Sandwich","dealText":"Valid with the purchase of any drink on Tuesday through Thursday from 11am to 4pm. Cannot be combined with other offers.","dealImg":"\/_uploadedFiles\/bus_logo\/27-bbcd4e93-stellina logo white.jpg","dealMetroId":"1","dealCategory":"Restaurant","dealCount":"0","dealRemaining":99999},{"dealId":"21","dealName":"$10 OFF Kid's Clothing & Gifts","dealText":"Spend $50 and receive $10 off your total purchase","dealImg":"\/_uploadedFiles\/bus_logo\/30-a2eaffbb-Screen shot 2011-03-14 at 10.44.55 AM.png","dealMetroId":"1","dealCategory":"Baby\/Kids","dealCount":"3","dealRemaining":3}]}})

dealraiser.models.SavedDeals = Ext.regModel("dealraiser.models.savedDeals", {

fields: [
{name : "dealId", type: "int"},
{name : "dealName", type : "string"},
{name : "dealText", type : "string"},
{name : "dealImg", type : "string"},
{name : "metroId", type : "string"},
{name : "dealCategory", type : "string"},
{name : "dealCount", type : "int"},
{name : "dealRemaining", type : "int"}



Store :

dealraiser.stores.SSavedDeals = new Ext.data.Store({
model: 'dealraiser.models.savedDeals',
autoload: true,

proxy: {
type: 'scripttag',
url: 'http://dealraiser.com/dealraiser/savedDeals.php',
extraParams: {
UserID: '767'
reader: {
//type: 'json',
root: 'msg'
I am trying to resolve this issue for more then 38 hrs.