Table Properties not retaining values

Last post 10-07-2005, 12:50 PM by Adam. 10 replies.
Sort Posts: Previous Next
  •  09-28-2005, 4:37 PM 11149

    Table Properties not retaining values

    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.
     
    This problem with not retaining values seems to occur on http://www.cutesoft.net/asp/EnableAll.asp as well.
     
    Thanks,
    Nathan
  •  09-29-2005, 1:22 PM 11195 in reply to 11149

    Re: Table Properties not retaining values

    I redownloaded v4.2 and this problem still occurs.
  •  09-29-2005, 1:57 PM 11197 in reply to 11195

    Re: Table Properties not retaining values

    I discovered that when I try to output the var "element", in v4.0 it holds a value, but in 4.2 it is always null.
     
    For example, I tried this:
      var arg=top.dialogArguments;
      var element=arg.element;
     alert(element);
     if(element)
      {
       p_table=element;
      }
     
    So whenever I click the "Insert Table" button, or double-click on a table, I get an alert telling me about "element."  In v4.0, the first time I click Insert Table, it gives me "null."  Then any time I double-click on a table to view the properties, I get "[object]" and the values are retained.  In 4.2, whenever I double-click on a table, it still says "null."
     
    This is telling me that maybe the new values aren't getting written to the element.  I'm not sure why that would be.  I did a compare on the Insert_Table.asp file from v4.0 and v4.2, and they are identical. 
     
    Hope that helps.
  •  09-30-2005, 1:51 PM 11244 in reply to 11197

    Re: Table Properties not retaining values

    Any luck with this?  Seems to be a bug in 4.2.
  •  10-01-2005, 12:04 AM 11263 in reply to 11244

    Re: Table Properties not retaining values

    ngaudreau,

    In the version 4.2 we have two table dialogs. Both of them use the insert_table.asp.

    When you click the insert a new table, we pass a null to the insert_table.asp dialog, in this case, a new table will be created.

    However if the client click the modify table button, we search the table element and pass it the insert_table.asp dialog, now the users can edit the existing table properties.

    It's not a bug.

     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-03-2005, 1:57 PM 11307 in reply to 11263

    Re: Table Properties not retaining values

    Ah, I did not see the Modify Table icon in the help file.  But I've added it now and there seems to still be a couple of problems.
     
    For example, if I try changing the number of rows and columns, it doesnt apply it to the table (perhaps that is just how it works).  It also doesn't retain the alignment value.
     
    Also, it seems more intuitive to have the Modify Table appear when double-clicking on a table rather than a New Table window(null being passed to insert_table.asp).
     
    Thanks,
    Nathan
  •  10-05-2005, 12:49 PM 11427 in reply to 11307

    Re: Table Properties not retaining values

    Are these known issues?
  •  10-05-2005, 9:37 PM 11463 in reply to 11307

    Re: Table Properties not retaining values

    Nathan,

    >>For example, if I try changing the number of rows and columns, it doesnt apply it to the table (perhaps that is just how it works). 

    Those option should be disabled when editng the table properties.

    >> It also doesn't retain the alignment value.
     
    We will look at this issue and get back to you as soon as possible.

    >>Also, it seems more intuitive to have the Modify Table appear when double-clicking on a table rather than a New Table window(null being passed to insert_table.asp).

    That makese sense.

    We will write a quick solution to this tonight.

    Please download the software again tomorrow.

     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-06-2005, 12:25 PM 11486 in reply to 11463

    Re: Table Properties not retaining values

    Ya, I figured that the rows and columns drop downs should be disabled, but they are not.  Maybe they should just display the number of rows and columns as a static integer on the window, rather than in a drop down.
     
    I will download the file again tomorrow.  Thank you very much.
  •  10-07-2005, 12:37 PM 11524 in reply to 11486

    Re: Table Properties not retaining values

     ngaudreau wrote:
    Ya, I figured that the rows and columns drop downs should be disabled, but they are not.  Maybe they should just display the number of rows and columns as a static integer on the window, rather than in a drop down.
     
    I will download the file again tomorrow.  Thank you very much.
     
    Are the files ready for re-download?
  •  10-07-2005, 12:50 PM 11528 in reply to 11524

    Re: Table Properties not retaining values

View as RSS news feed in XML