Ok I found my answer and I shall share. What I was looking for was a property
in the Ext JS that let me know it was done doing it's thing. After digging
around the Ext JS 1.1 Documentation I found the 'Ext.isReady' property. Quick
little test with an alert placed in the try catch block showed that the
property was false when the page content was stacked. So I modified my inline
JS as follows:
<cfif SESSION.UserBucket.UserAccess NEQ 1>
<script>
function creation_complete(){
lpck=setTimeout('creation_complete()',1500);
if(Ext.isReady){
clearTimeout(lpck);
disable_tabView('DataContainer', 'Comments');
}
}
function disable_tabView(m,n){
try{
ColdFusion.Layout.disableTab(m,n);
return;
}
catch(err){}
}
creation_complete();
</script>
</cfif>
And just like magic all is well in the land of code and honey. Guess it's
really past time for me to go and get Cutter's book on learning ExtJS.
-Brett
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327838
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4