PDA

View Full Version : SOLVED-upgraded to 1.1 - all dialogs are broken. Help!



kenITR
5 Oct 2007, 8:22 AM
Help! I'm in a panic. I upgraded to 1.1. and everything seemed fine. I need to demo this app to mgt and suddenly I find all my dialogs are broken. I get the dreaded el has no properties. This worked fine in 1.0.1. I don't know where even to begin trouble shooting this.

fay
5 Oct 2007, 8:24 AM
Just a quick thought - did you clear your cache?

brian.moeskau
5 Oct 2007, 8:28 AM
1.0.1 -> 1.1 is fully compatible. Please double-check your build, all paths, etc. "el has no properties" usually means an include problem or a dependency problem.

kenITR
5 Oct 2007, 9:35 AM
Thanks for your reply.

Everything else works OK, ajax calls, etc. Here's the code for the new dialog. Does anything look wrong?



function createNewDialog(dialogName, height) {
var thisDialog = new Ext.LayoutDialog(dialogName, {
modal:true,
autoTabs:true,
proxyDrag:true,
resizable:false,
width:480,
height:height,
shadow:true,
center: {
autoScroll:true,
tabPosition:'top',
closeOnTab:true,
alwaysShowTabs:false
}
});
thisDialog.addKeyListener(27, thisDialog.hide, thisDialog);
thisDialog.addButton('Cancel', function() {thisDialog.hide();});

return thisDialog;
};

kenITR
5 Oct 2007, 10:27 AM
OK. I installed ext-all-debug.js and it's the Ext.get that's not working. It doesn't recognize my element's ID although it's there. I changed the id to see if there were any character problems and the get is still not seeing the element. This is really weird.

Here are my includes:



<link rel="stylesheet" type="text/css" href="ext1.1/css/ext-all.css" />
<script type="text/javascript" src="ext1.1/scripts/ext-base.js"></script>
<script type="text/javascript" src="ext1.1/scripts/ext-all-debug.js"></script>

kenITR
5 Oct 2007, 10:58 AM
OK. My bad. It was the thing I did after I upgraded to 1.1. Somehow I dropped a </div> in the html and that bollixed everything up. Thanks for the help.