开发者

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. 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜