Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Threaded View

  1. #1
    Sencha User
    Join Date
    May 2011
    Vote Rating
    mobitinker is on a distinguished road


    Default How to debug loading of store

    How to debug loading of store


    I've gotten stuck on loading a store and am wondering how to debug the problem. If someone can see my mistake I'd be most grateful.

    My app is trying to load a list from Google's RSS feed widget. I'm using the scripttag pattern to load the list's store. Things seem to flow as expected, but the store does not get loaded.

    I can see the scripttag request being returned from the server with the expected data. The Chrome debugger reports trouble as:

    Uncaught TypeError: Cannot read property 'length' of undefined. Tracing the stack I see this is coming from this line in sencha-touch-debug-w-comments.js:

    at which is seeing the response value of '0' at
    result =

    Watching traffic with Fiddler I see in JSON view this, which looks as expected:

    The raw text coming from the server starts like this:

    stcCallback1001('0', {"feed":{"feedUrl":"","title":"Mercy Corps blogs","link":"","author":"","description":"","type":"rss20","entries":[{"title":"Horror in the Horn of Africa: reflections and projections","link":"","author":"Dan O\u0026#39;Neill","publishedDate":"Tue, 02 Aug 2011 09:01:45 -0700","contentSnippet":"\n\t\n\tSudan, 1984. Photo: Jon Warren for Mercy Corps\t\nI first encountered extreme poverty and hunger in 1972 when I drove through ...","content":"\u003cdiv style\u003d\"width:590px\"\u003e\n\t\u003ca href\u003d

    The code looks like this:

            <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
            <link href="lib/touch/resources/css/sencha-touch.css" rel="stylesheet" type="text/css" />
    		<script src="" type="text/javascript"></script>
            <script type="text/javascript" src="lib/touch/sencha-touch.js"></script>
            <script type="text/javascript">
    			//Initialize Google
    			google.load('feeds', '1');
    			function initialize() {
    			    onReady : function() {
    			    	Ext.regModel('Article', {
    			        	fields: [
    			    	         	{name: 'title', type: 'string' },
    			    	         	{name: 'link', type: 'string'}
    			    	Ext.regModel('Contact', {
    			            fields: ['title', 'link']
    			        var myFeed = {
    			            itemTpl: '<div class="contact2"><strong>{title}</strong> {link}</div>',
    			        	store : new{
    			                model  : 'Article',
    			                proxy : {
    			                	type: 'scripttag',
    			                	url: '',
    			                	extraParams: {
    			    	                context: '0',
    			    	                num: '10',
    			    	                hl: 'en',
    			    	                output: 'json',
    			    	                q: '',
    			    	                v: '1.0',
    			    	                nocache: '0',
    			    	                //filters: []
    			                    reader: {
    			                    	type: 'json',
    			                    	root: 'feed.entries'
    			        		autoLoad: true,
    			        		listeners : {
    			        			load: function(s, records, success){
    			        				//Not reached
    			                	beforeload: function(s, operation) {
    			                		//This fires ok
    			                		console.log('before load');
    		            new Ext.List(Ext.apply(myFeed, {
    		                floating: true,
    		                width: 350,
    		                height: 370,
    		                centered: true,
    		                modal: true,
    		                hideOnMaskTap: false
    Last edited by mobitinker; 2 Aug 2011 at 8:55 PM. Reason: Make more clear

Thread Participants: 1