简体   繁体   English

在CGI :: Formbuilder中禁用Javascript验证

[英]Disable Javascript validation in CGI::Formbuilder

Creating a form with CGI::Formbuilder generates a HTML page containing javascript to validate the fields (with an old-school style "alert" if the form is invalid) as well as back-end verification in Perl. 使用CGI :: Formbuilder创建表单生成一个HTML页面,该页面包含用于验证字段的JavaScript(如果表单无效,则使用老式风格的“警报”)以及Perl中的后端验证。 Would anyone know how to turn off the javascript generation (so that I can use some other js libraries better eye candy, or even only use backend verification) ? 有谁知道如何关闭javascript的生成(以便我可以更好地使用其他一些js库,甚至只使用后端验证)?

Thanks, Manojo 谢谢,Manojo

Try 尝试

my $form = CGI::FormBuilder->new(
    javascript => 0
);

As found in the quick reference 快速参考中所发现

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

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