Hi Friends,
I am not getting how to get the value of the text box, here is XSJS code
$.response.contentType = "text/html";
var output="";
var conn = $.db.getConnection();
var body;
var tail;
var n = 0;
conn.prepareStatement("SET SCHEMA \"PEOL_USER\"").execute();
var pstm = conn.prepareStatement("SELECT EMP_ID, EMP_NAME FROM EMP_DETAILS ");
var rs = pstm.executeQuery();
body = "<table border = 1px; > <th > EMP_ID </th> <th border = 1px;>EMP_NAME</th>";
while (rs.next()) {
n = n+1;
output = output + "<tr ><td ><input type = text id = t1"+rs.getString(1)+" name = t1"+rs.getString(1)+" value ="+ rs.getString(1)+"></td> <td >"+ rs.getString(2)+
"</td> <td ><input type = submit name = btn1 value = UPDATE /></td></tr>";
}
//var x = document.getElementsById("t11").value;
tail = "</table></br></br> <a href = \"http://10.102.148.230:8000/PEOL/Demo/Dispay.xsjs?id="+x+"\"> <input type = submit name = btn1 value = SUBMIT /> </a>";
output = body + output + tail+x;
rs.close();
pstm.close();
conn.close();
$.response.setBody(output);
above code will display values in table form with table cell containing text box but after editing cell , i am unable to get that value..
any help will be appreciated .
Thanks and Regards
Mallikarjun