thanks
it all is useful
uwrote the coding of 1 textarea whereas i got the textarea generated
dynamically
its coding is:
function addRowToTable(val)
{
var tbl = document.getElementById(TABLE_NAME);
var nextRow = tbl.rows.length;
var iteration = nextRow - parseInt(headerRows) + parseInt(1);
// add the row
var row = tbl.insertRow(nextRow);
// CONFIG: This whole section can be configured
// cell 0 - text
var cell0 = row.insertCell(0);
var textNode = document.createTextNode(iteration);
//cell0.appendChild(textNode);
// cell 1 - input text
var cell1 = row.insertCell(1);
var txtInp = document.createElement('input');
txtInp.setAttribute('type', 'text');
txtInp.setAttribute('name', INPUT_NAME_PREFIX + iteration);
txtInp.setAttribute('size', '6');
txtInp.setAttribute('value', ''); // iteration included for debug
purposes
cell1.appendChild(txtInp);
// cell 2 - textarea
var cell2 = row.insertCell(2);
var txtAr = document.createElement('textarea')
txtAr.setAttribute('rows','4');
txtAr.setAttribute('cols','50');
txtAr.setAttribute('name',INPUT_NAME_PREFIX2 + iteration);
txtAr.setAttribute('id','newid');
//txtAr.setAttribute('value','Objectives:');
cell2.appendChild(txtAr);
//cell 3 - input button
var cell3 = row.insertCell(3);
var btnE1 = document.createElement('input');
btnE1.setAttribute('type','button');
btnE1.setAttribute('value','Delete Objective');
btnE1.onclick = function () {deleteCurrentRow(this) };
cell3.appendChild(btnE1);
//cell 4- input insert button
var cell4 = row.insertCell(4);
var btnE2 = document.createElement('input');
btnE2.setAttribute('type','button');
btnE2.setAttribute('value','Insert');
btnE2.onclick = function () {insertRow('tblSample',
'txtInsertIndex','errorMessage') };
cell4.appendChild(btnE2);
// Pass in the elements you want to reference later
// Store the myRow object in each row
row.myRow = new myRowObject(txtInp, txtAr);
}
now how these values ican get
iwant all that
DNT WORRY FROM PROBLEMS
*** Sent via Developersdex
http://www.developersdex.com ***