PDA

View Full Version : JSNO to Carousel Items



stirucherai
13 Dec 2011, 3:53 AM
Hi,

Wanted to load JSON records as Carousel ITEMs. While this was sucessful but when I turn on the indicator (indicatore : true) I get following error

addIndicator: function() {
this.indicators.push(this.element.createChild({

sencha-touch-all-debug-w-comments.js:55526 Uncaught TypeError: Cannot call method 'createChild' of null

tag: 'span'
}));
},

stirucherai
13 Dec 2011, 3:56 AM
Working code (indicator : false)



pattuStore=Ext.StoreManager.get("pattuLyric");
pattuStore.getProxy().url= "app/model/0927-0938 Amalanadhipiran.json";
response = pattuStore.load({
scope: this,
callback: function(records, operation, success){

var currentPattu = 0;
pattuCarousel=Ext.ComponentMgr.get("pattuCarousel");

Ext.each(records, function(record)
{
pattuCarousel.add(Ext.widget('panel',
{
html: record.get('pattuText')
}));
});
});

rdougan
13 Dec 2011, 9:37 AM
Could you please provide a simple testcase so we can look into this please?

stirucherai
13 Dec 2011, 4:13 PM
First Post gives the error and second post gives the section code on how I am loading the carousel.

If indicator is set to true -- I get the error. Do you want the full code.

stirucherai
13 Dec 2011, 4:52 PM
Attaching the code

with indicator : true -- Please check console for error. Only first page is loaded

with indicator : false -- All items (6 items) are loaded perfectly loaded



Please copy sencha-touch-all-debug-w-comments.js to lib folder to test the same (because of size restriction I could not attach that)

rudacs
1 Jun 2012, 9:03 AM
This error still persists. When will it be solved?