Hello Monks,
This question is about incorporating java script(?) in a perl + CGI program.
Am not sure whether java script is the one to be used or can be done in perl-CGI itself
This is the problem:
I have a set of text area fields ( eg: 3 text area displayed in a row )
and when the user clicks a button, I would like to add another set of text area fields
eventually,
2 set of textarea in different lines
I tried the following
add_set_of_text_area;
if ( $ENV{'QUERY_STRING'} =~ /^Button_name/ ) {
add_set_of_text_area; # this displays 3 text area fields
}
The problem with this as you can see is the maximum set of textarea fields
that can be generated is only 2 sets.
As and when the user clicks the button, I need to keep generating the set of textarea fields.
How can I keep track of the set of text area fields already generated?
Can you please provide me some pointers on how to keep generating the set of textarea fields
on clicking the 'button'?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.