开发者

Disable Javascript validation in CGI::Formbuilder

开发者 https://www.devze.com 2023-01-26 21:41 出处:网络
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

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. Would anyone know how to turn off the javascript generation (so that I can use some other js libraries better eye c开发者_开发百科andy, or even only use backend verification) ?

Thanks, Manojo


Try

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

As found in the quick reference

0

精彩评论

暂无评论...
验证码 换一张
取 消