Perdiga
31 Jan 2012, 10:50 AM
how can i make one carousel dynamic? i am trying do do this
mySlideShowPanel.removeAll(true,false);
for(i = 0 ; i < result.Result.length ; i++ ){
mySlideShowPanel.add([{
xtype: 'image',
cls: 'my-carousel-item-img',
id: 'image'+i,
src: result.Result[i].uri,
nome: result.Result[i].nome,
atual:i+1,
total:result.Result.length,
}])
}
the first time works fine but not the second time
NOT_FOUND_ERR: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
mySlideShowPanel.removeAll(true,false);
for(i = 0 ; i < result.Result.length ; i++ ){
mySlideShowPanel.add([{
xtype: 'image',
cls: 'my-carousel-item-img',
id: 'image'+i,
src: result.Result[i].uri,
nome: result.Result[i].nome,
atual:i+1,
total:result.Result.length,
}])
}
the first time works fine but not the second time
NOT_FOUND_ERR: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.