Do you know where your variables are? | |
PerlMonks |
Populating options in html select.by techcode (Hermit) |
on Sep 28, 2005 at 22:57 UTC ( [id://495936]=perlquestion: print w/replies, xml ) | Need Help?? |
techcode has asked for the wisdom of the Perl Monks concerning the following question:
Yeah I know - it's asked and answered 100's of times. But I'm not happy with proposed solutions. I know about HTML::FillInForm and other modules with similar functionality. But I haven't found any that would beside selecting right option in a <select> also dynamically make those. To make it more clear. Inside my template (HTML::Template)
I know about solution with CGI.pm that would generate the whole thing together with select but I use CGI::Simple - and I want to leave it possible for designer (or whoever) to say set class (CSS) for the particular select - or maybe add onChange JS event handler ...
Another solution would be : But then I end up with HTML generating code - which means I have html code inside my Perl code ... Also looks kinda funky :) And it also requires work inside my code. I was thinking of simply passing array(ref) of possible values that would be used for filling options. And then HTML::FillInForm would easily select right option. Any module that does that? If not, I might try to write it myself - but I'm not that good with parsing ...
Have you tried freelancing? Check out Scriptlance - I work there.
Back to
Seekers of Perl Wisdom
|
|