Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Enabling Default Values and Resizing Textfield in CGI.pm

by monkfan (Curate)
on Apr 24, 2007 at 14:35 UTC ( #611747=perlquestion: print w/replies, xml ) Need Help??
monkfan has asked for the wisdom of the Perl Monks concerning the following question:

Dear Fellow Monks,
As can be seen in this url, how come my snippet below:
sub generate_form { print start_multipart_form(), strong('GO Term or GO ID:' ), textfield( -name => 'go_ti' -overrride => 1 -default => 'microtubule' # no effect ), br, br strong('Sequence Type: '), popup_menu( -name => 'seq_type', -values => [ 'Upstream', 'Downstream', 'ORF (unspliced)', ] ), strong('Start:'), textfield( -name => 'win_start' -overrride => 1 -size => 10, # no effect -maxlength => 10, -default => '-800' ), strong('End:'), textfield( -name => 'win_end' -overrride => 1 -size => 10, # no effect -maxlength => 10, -default => '-1'), br, br strong('Organism Types: '), popup_menu( -name => 'organism', -values => [ 'A.gambiae', 'A.nidulans', 'A.thaliana', 'B.subtilis', 'C.elegans', 'C.familiaris', 'D.melanogaster', 'D.rerio', 'E.coli', 'F.rubripes', 'G.gallus', 'H.sapiens', 'M.musculus', 'R.norvegicus', 'S.cerevisiae', ] ),br, br submit( -name=>'action', -value => 'Submit' ), end_form; } # the complete code is here: http://dpaste.com/8976/plain/
  • doesn't enable default value for my first textfield ('go_ti')?
  • And also the maxsize and length in textfield 'win_end' and 'win_start' doesn't seem to take effect?

Regards,
Edward

Replies are listed 'Best First'.
Re: Enabling Default Values and Resizing Textfield in CGI.pm
by Joost (Canon) on Apr 24, 2007 at 15:01 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://611747]
Approved by Joost
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2016-12-04 13:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (65 votes). Check out past polls.