Welcome to Pintexx Forum Sign in | Join | Faq

pinEdit

Started by Pintexx Support at 09-14-2005 10:12 . Topic has 0 replies.

Print Search
Sort Posts:    
   09-14-2005, 10:12
Pintexx Support is not online. Last active: 12.01.2012 07:36:39 Pintexx Support

Top 10 Posts
Joined on 08-30-2005
Posts 1.910
How to create a customized table insert routine ?
To customize the table insert routine please replace the event handler for inserting a table with the following function:
 
function onCreateTable(row, col)
{
   //  editCreateTable(row,col);
        var sTableHtml = "<TABLE WIDTH=75% bordercolor=black border=1 cellspacing=0 cellpadding=3>\n<TBODY>\n";
        for (var r=0; r<row; r++) {
                sTableHtml += "<TR>\n";
                for (var c=0; c<col; c++) {
                        sTableHtml += "<TD></TD>\n";
                }
                sTableHtml += "</TR>\n";
        }
        sTableHtml += "</TBODY>\n</TABLE>\n";
        editInsertHtml(sTableHtml);
}
 
(Thank's, Patrick)

   Report 
Pintexx Forum » Knowledge Base » pinEdit » How to create a customized table insert routine ?