PDA

View Full Version : Load coldfusion flash objects into extJS panels



Esparry
27 Apr 2010, 10:52 AM
Okay I made a mistake, the Thread name should be :"Load coldfusion flash objects inside extJS Panels"

Hi guys, I have been working on coldfusion 9 and I have a problem, I want to load a new flash object called "cffileupload" inside a tabPanel, but when I pop up the extjs window the object is not displayed inside the panel, do you know if I'm missing something here? here's the code:



<script type="text/javascript">
Ext.onReady(function(){

var button = Ext.get('show-btn');

button.on('click', function(){

mUploadTab = new Ext.TabPanel({
enableTabScroll:true,
region : 'center',
margins : '3 3 3 0',
activeTab : 0,
width : 400,
defaults: {autoScroll:true,hideMode:'visibility'},
autoLoad:{ url:'<cfoutput>#dAdress#</cfoutput>actionPage.cfm',scripts: true}
});

var win = new Ext.Window({
title : 'Layout Window',
closable : true,
width : 600,
height : 350,
//border : false,
plain : true,
layout : 'border',
items : [mUploadTab]
});

win.show(button);
});
});

</script>
Here's the action page code:



<cfoutput>
<cffileupload url="#dAdress#mycontroller.cfm" />
</cfoutput>
there's a particular way to handle flash objects inside extjs containers like panels?

Thanks