iwallis
13 Aug 2009, 1:46 PM
Hi,
I am attempting to load a Ext.ux.Carousel object based on the example in Ext-Core into a panel via the autoload: 'file.html' however it is not displaying properly. I am able to get the example working no problem.
var galleryPanel = new Ext.Panel({
id: 'gallery-panel',
//padding: 5,
margins: '5 0 0 5',
frame: true,
width: 500,
autoHeight: true,
title: 'Gallery',
autoLoad: {
url: 'gallery.html',
scripts: true
}
});
----------------------------
file.html
----------------------------
<div id="simple-example" style="padding: 5px; height: 280px; width: 420px; background-color: #E6E6E0">
<img src="slides/1.jpg" title="Masterpiece">
<img src="slides/2.jpg" title="Teeth">
<img src="slides/3.jpg" title="Roar">
<img src="slides/4.jpg" title="Feed me">
<img src="slides/5.jpg" title="Debugging">
<img src="slides/6.jpg" title="Baby">
</div>
<script type="text/javascript">
Ext.onReady(function() {
new Ext.ux.Carousel('simple-example');
})
</script>
Any ideas why this problem is occurring?
I am attempting to load a Ext.ux.Carousel object based on the example in Ext-Core into a panel via the autoload: 'file.html' however it is not displaying properly. I am able to get the example working no problem.
var galleryPanel = new Ext.Panel({
id: 'gallery-panel',
//padding: 5,
margins: '5 0 0 5',
frame: true,
width: 500,
autoHeight: true,
title: 'Gallery',
autoLoad: {
url: 'gallery.html',
scripts: true
}
});
----------------------------
file.html
----------------------------
<div id="simple-example" style="padding: 5px; height: 280px; width: 420px; background-color: #E6E6E0">
<img src="slides/1.jpg" title="Masterpiece">
<img src="slides/2.jpg" title="Teeth">
<img src="slides/3.jpg" title="Roar">
<img src="slides/4.jpg" title="Feed me">
<img src="slides/5.jpg" title="Debugging">
<img src="slides/6.jpg" title="Baby">
</div>
<script type="text/javascript">
Ext.onReady(function() {
new Ext.ux.Carousel('simple-example');
})
</script>
Any ideas why this problem is occurring?