I have this in another post, but I thought it should have its own.
The values in the Table Properties are not getting retained. For example, if I create a table with a certain Width and Height, then I double-click the table to revisit the properties, the values are not what I changed them to, but rather they are back to the default values.
I'm looking around, and it seems that there is a problem with this code:
var arg=top.dialogArguments;
var element=arg.element;
if(element)
{
p_table=element;
}
-----
function Submit(){
if(element){
element.borderColor=bordercolor_Preview.style.backgroundColor;
element.bgColor=bgcolor_Preview.style.backgroundColor;
element.border=border.value;
element.cellPadding=cellpadding.value;
element.cellSpacing=cellspacing.value;
element.align=alignment.value;
element.style.width=p_table.style.width;
element.style.height=p_table.style.height;
}
That is in Insert_Table.asp. Even after I've created a table, the variable "element" remains null. It never gets into those if statements, so it always does the the else cases, which isn't right if the table already exists.
Thanks,
Nathan