Subject: Object expected
Posted By: darkhalf Post Date: 9/28/2006 1:48:42 PM
Hey,

I guess this weird error "Object Expected"... Now I know that it means that it can't find a specifc function/variable/etc... But the issue is that it only happens when I copy this function within the .js file.  But if I comment out the whole function it finds the function, and I dont' get the error, but if I comment the insde of the createTable function (ie have noting withing the {}, it still gives me the Object Expected error... Like what gives?

function createTable(id,label,col,class)
{
    var nTable = document.createElement("table");
    var nThead = document.createElement("thead");

    var nRow = document.createElement("tr");
    var nHdr = document.createElement("th");
    var nText = document.createTextNode(label);

    nHdr.appendChild(nText);
    nHdr.colSpan = col;
    nRow.appendChild(nHdr);
    nThead.appendChild(nRow);

    nTable.id = id;
    nTable.className = class;
    nTable.appendChild(nThead);
    document.getElementById('userSelection').appendChild(nTable);
}

Reply By: darkhalf Reply Date: 9/28/2006 5:32:08 PM
NM


Go to topic 50386

Return to index page 161
Return to index page 160
Return to index page 159
Return to index page 158
Return to index page 157
Return to index page 156
Return to index page 155
Return to index page 154
Return to index page 153
Return to index page 152