the way to get a value from a hidden type correctly

Posted by kawtousse on Stack Overflow See other posts from Stack Overflow or by kawtousse
Published on 2010-05-25T14:04:08Z Indexed on 2010/05/25 14:11 UTC
Read the original article Hit count: 150

Filed under:
|

hey,

in a html table i construct in each row an edit buttton like the following:

 retour.append("<input type=\"hidden\" id=\"id_"+nomTab+"_"+compteur+"\"  value=\""+object.getIdDailyTimeSheet()+"\"  name=\"hd_"+compteur+"\" />");

this is the hidden type then i do the following:

         retour.append("<button  id=edit name=edit type=button  onClick= editarow()>");
                           retour.append("<img src=edit.gif />");
                           retour.append("</button>");
                           retour.append("</td>");

here i am using the hidden type to differenciate between my rows with it. Now I am trying to get the parameter called here: value=\""+object.getIdDailyTimeSheet() in my servlet to do an update query based on the IdDailyTimeSheet. I didn't untill know find the way to get this value every time i click the edit button (i do its submit with the javascript).

thanks for help.

© Stack Overflow or respective owner

Related posts about java

Related posts about j2ee