Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: display new options based on checkbox inputs

by choroba (Bishop)
on Jul 03, 2014 at 13:22 UTC ( #1092167=note: print w/replies, xml ) Need Help??

in reply to display new options based on checkbox inputs

If you want the input for checkbox to be displayed when the checkbox is clicked without reloading the page, you have to implement this logic on the client side, i.e. in JavaScript, not Perl.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re: display new options based on checkbox inputs

Replies are listed 'Best First'.
Re^2: display new options based on checkbox inputs
by Anonymous Monk on Jul 03, 2014 at 13:26 UTC
    Thanks for it, i am pretty much new to perl, and not sure how to pull js here.. any examples will be great...

      Stop using CGI to generate HTML. It's just more work than it's worth. Either switch to a modern web framework (see Dancer) or if you insist on using CGI use a templating system (Template, HTML::Template) to keep your perl code seperate from your HTML/CSS/JS code. Essentially make an HTML/JavaScript version that does what you want to do, once working use this as a template.

        but how do we validate the input???

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1092167]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2018-06-20 23:54 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (117 votes). Check out past polls.