Have a question on using insertSiblingNodesBefore.  My goal is it
insert a 'new TR' before the first 'TR' in a table but getting an eror.
 Can someone point out the error of my ways?
Thx,

function addRow() {
var table = $("partRows");
var body = $("partRowsBody");
var oldRow = $("partRows").getElementsByTagName("TR")[0];
var newRow = TR( { id : "rowCount" + rowCount.toString(),
rownum:rowCount.toString() },
        TD( { id : "moreInfo" + rowCount.toString() }),
        TD( { id : "wfDsp" + rowCount.toString() }),
        TD( { id : "lineNum" + rowCount.toString() }),
        TD( { id : "part" + rowCount.toString() }),
        TD( {"class" : "numColumn", id : "lineqty" + rowCount.toString() }),
        TD( { id : "uom" + rowCount.toString() }),
        TD( {"class" : "numColumn", id : "price" + rowCount.toString() }),
        TD( {"class" : "numColumn", id : "extPrice" + rowCount.toString() }),
        TD( { id : "desc" + rowCount.toString() }),
        TD( { id : "ATPdate" + rowCount.toString() }),
        TD( { id : "ATPorg" + rowCount.toString() }),
        TD( { id : "ARO" + rowCount.toString() }),
        TD( { id : "remove" + rowCount.toString() }));

        insertSiblingNodesBefore(oldRow, newRow);
        
}


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to