|
-
Feb 17th, 2001, 10:22 PM
#1
Thread Starter
New Member
I want to have a table that support the adding of rows without having call the server to get the new page. I have got this working under IE but the same code doesnt work under netscape (no add row support)
The way i have this working is
var oRow, oCell;
var i, j;
// Insert row from the first body.
intRowCount++;
oRow = oTBody1.insertRow();
oCell = oRow.insertCell();
oCell.innerHTML = "<select style='Font-Size:8pt' name=selDate" + intRowCount + "></select>";
oCell = oRow.insertCell();
oCell.innerHTML = "<SELECT style='Font-Size:8pt' name=selSchool" + intRowCount + ">";
oCell = oRow.insertCell();
oCell.innerHTML = "<input type=hidden name=txtworkdesc" + intRowCount + "><a href=# onclick='OpenDesc(" + intRowCount + ")'><CENTER><IMG border=0 SRC='../images/text.gif'></a>";
oCell = oRow.insertCell();
oCell.innerHTML = "<SELECT style='Font-Size:8pt' name=selHourStartTime" + intRowCount + "></Select><SELECT style='Font-Size:8pt' name=selMinStartTime" + intRowCount + "></Select>";
oCell = oRow.insertCell();
oCell.innerHTML = "<SELECT style='Font-Size:8pt' name=selBreakTime" + intRowCount + "></Select>";
oCell = oRow.insertCell();
oCell.innerHTML = "<SELECT style='Font-Size:8pt' name=selHourEndTime" + intRowCount + "></Select><SELECT style='Font-Size:8pt' name=selMinEndTime" + intRowCount + "></Select>";
UpdateDropDowns(intRowCount);
document.frmMain.intNumrows.value = intRowCount;
}
Is there a way to get the same thing going under netscape 4+ ??
Thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|