一种网页表单数据验证的方法和装置制造方法及图纸

技术编号:4160496 阅读:253 留言:0更新日期:2012-04-11 18:40
本发明专利技术实施例提供了一种网页表单数据验证的装置和方法。该装置包括:验证器管理模块,用于管理至少一个验证器,并维护验证器的标识和验证器之间的对应关系信息;脚本模块,用于接收生成脚本代码的调用请求,该调用请求中包含有网页表单的表单域信息,并根据该调用请求中包含的表单域信息,获取所述验证器管理模块所管理的验证器中与该网页表单中的表单域关联的验证器,通过调用该验证器获得用于客户端数据验证的脚本代码,将所述脚本代码输出,所述脚本代码用于客户端对所述表单域中的数据进行验证。利用本发明专利技术,减小客户端与服务器端的验证逻辑之间的不一致,从而减少系统出错的几率。

Method and device for data validation of web page form

The embodiment of the invention provides a device and a method for verifying data of web form. The device includes a validator management module for managing at least one validator, and maintain the relationship between information identification and validator validator; script module, for receiving the generated script code calls, the call request contains a web form form domain information, and according to the domain information form contains the call request the validator and form fields associated with the web form in the authenticator acquires the authenticator management module management, for client data validation script code by calling the authenticator, the script code output, the script code for the client to verify the data in the form field. By using the invention, the inconsistency between the authentication logic of the client and the server is reduced, thereby reducing the probability of the system error.

【技术实现步骤摘要】

【技术保护点】
一种验证器,其特征在于,包括; 接口模块,包括指定接口,该指定接口被调用后,输出用于客户端数据验证的脚本代码; 验证模块,用于被触发进行服务器端的数据验证时,对需要验证的网页表单中的表单域中的数据进行验证。

【技术特征摘要】

【专利技术属性】
技术研发人员:刘建军
申请(专利权)人:华为技术有限公司
类型:发明
国别省市:94[中国|深圳]

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1