I'm frustrated . I've been trying to get this single piece of code to work. I've looked at quite a few sources out there, but everything I try fails.
My site uses AJAX to upload a file, and once complete I dynamically add the file name, size, description, etc to a table.
but none seem to work!! I know the function is ok because the files that are already on the page work correctly, meaning it's only the dynamically created rows that are having the issues.
2. cell1["onclick"] = new Function("downloadAttachmentFile('+attachID+')");
function addNewTableRow(fileTable, fileTitle, fileName)
var table = getMyElement(fileTable);
var rowCount = table.rows.length;
var row = table.insertRow(rowCount);
var cell0 = row.insertCell(0);
cell0.width = 25;
cell0.className = "tblTicketFilesWhite";
cell0["onclick"] = new Function("downloadAttachmentFile('+attachID+')");