Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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

Comment on Enabling Default Values and Resizing Textfield in CGI.pm
Download Code
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2014-09-17 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (56 votes), past polls