Listing 4. Click handlers for the submit buttons in register.js.
清单4. register . js中提交按钮的Click处理函数。
Therefore, a form can have multiple submit buttons, and each button can take the request to a different page for generating the HTML response.
因此,一个表单可以有多个提交按钮,每个按钮可以将请求发送到不同页面,以生成HTML响应。
Applications can use Ajax for auto-saving, but your forms should either provide good old submit buttons or use synchronous requests for sending the data for processing.
应用程序可以使用Ajax实现自动保存,但前提是表单应提供传统的提交按钮或使用同步请求发送数据以做处理。
It took less than 10k of JSP code to implement a set of tag files that produce the basic form elements: lists, text fields, radio buttons, check boxes, and submit buttons.
只需不到10k的JSP代码就可以实现一组标记文件,这些文件生成基本的表单元素:列表、文本字段、单选按钮、复选框和提交按钮。
Listing 3 shows a scenario in which using the click handler is necessary, because two Submit buttons can trigger the form submission.
清单3展示了这样一个必须使用click处理函数的场景,因为两个Submit按钮都能触发表单提交。
Listing 3 shows a scenario in which using the click handler is necessary, because two Submit buttons can trigger the form submission.
清单3展示了这样一个必须使用click处理函数的场景,因为两个Submit按钮都能触发表单提交。
应用推荐