Method for calibrating form
A verification method and form verification technology, applied in the field of form verification, can solve problems such as code changes and achieve the effect of reducing verification codes
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0029] Embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.
[0030] refer to figure 1 , the form verification method of the embodiment of the present invention may include the following steps:
[0031] Step 101, when the document structure loading completion (DOM Ready) event of the page is detected, all forms in the page are obtained, and when the newly added form creation completion (creationComplete) event is detected in the page, the newly added form in the page is obtained ;
[0032] Step 102, for the obtained form, if the form has an onsubmit attribute set, store the onsubmit attribute in a variable, create an anonymous function, set the anonymous function to the onsubmit attribute of the form, and make the onsubmit attribute of the form When triggered, execute the method defined by the anonymous function;
[0033] Wherein, the method defined by the anonymous function is:
[0034] Validate the form;
...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


