PDA

View Full Version : Problem with Dialog box



Cyberangel67
3 Aug 2007, 7:42 PM
I am having a problem with the dialog when the table applied with this, dialog is a very simple dialog and produces this error

invalid array length
this.length--;

The comment css is the offending problem, can anyone suggest how to get this to work?

.transBox {
filter:alpha(opacity=75);
/* opacity: 0.75; */
/* -moz-opacity:0.75; */
margin-right: 50px;
margin-bottom: 10px;
margin-left: 50px;
margin-top: 10px;
}

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="transBoxHeader">


if(!dialog){
dialog = new Ext.BasicDialog("ComponentDialog", {
title: "Component Details",
msg: "test",
modal:true,
width:600,
height:400,
shadow:true,
//minWidth:300,
//minHeight:250,
resizable: false,
closable: true,
collapsible: false,
//syncHeightBeforeShow: true,
proxyDrag: true
});
dialog.addKeyListener(27, dialog.hide, dialog);
dialog.addButton('Close', dialog.hide, dialog);
}
//console.log(details);
dialog.body.update(details);
dialog.show();

4 Aug 2007, 3:47 AM
it's hard to tell what's going on. First, post your code in php or code tags. Second, what's in your 'details' variable? Third, your posting is hard to decipher because you have CSS, HTML and javascript in one area without proper language delimiters.