简体   繁体   English

使用HTML获取表内容

[英]Get Table Contents using HTML

<Table>
<tr>

<td>ID</td>
<td>NAME</td>
<td>MARKS</td>
<td>Grade</td>
<td><a href="AddRecord.jsp" >Update Record</a> </td>

</tr>
</Table>

How can I get table contents for modification, when I press Update hyperlink button? 当我按“更新”超链接按钮时,如何获取要修改的表内容? or how can I send these contents as a parameter to the page "AddRecord.asp". 或者如何将这些内容作为参数发送到页面“ AddRecord.asp”。

If you are trying to submit a new row to a data table it sounds to me like you just need to use a traditional <form> and make the "Update Record" a submit type button. 如果您要向数据表提交新行,这听起来像是您只需要使用传统的<form>并将“ Update Record”设置为提交类型按钮即可。 You are going to have to read up on using databases and JSP to process your update requests. 您将必须阅读有关使用数据库和JSP来处理更新请求的信息。

I suggest you start by reading on submitting forms at: http://www.w3schools.com/tags/att_form_action.asp 我建议您首先阅读以下提交表单: http : //www.w3schools.com/tags/att_form_action.asp

I think your best best is AJAX and JavaScript. 我认为最好的是AJAX和JavaScript。 Make an AJAX call to get the content and add it to the DOM using JavaScript. 进行AJAX调用以获取内容,然后使用JavaScript将其添加到DOM中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM