Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Enabling Default Values and Resizing Textfield in

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:
  • 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?


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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://611747]
Approved by Joost
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2016-10-21 01:40 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (284 votes). Check out past polls.