bitzy790 has asked for the wisdom of the Perl Monks concerning the following question:
Hi! I have 10 fields in a row of country data. Then I have 20 rows of countries. Is there any way to display the country data in a table, but have each selectable by a radio button? It will be a pain to use hotlinks due to the amount of data hidden in the form. I would like the columns to display under a header. Thanks!
Re: table in a radio group
by CountZero (Bishop) on Jul 22, 2005 at 21:24 UTC
|
Your question is not clear: do you want one radio button for each country (i.e. one radio-button per row), or one radio button per field (i.e. 10 radio buttons per row).Both are possible. Shall we assume (for the sake of bringing your question at least within the scope of Perl Monks) that you wish to set up this structure automatically through a Perl-script? Or do you use a templating-system?
CountZero "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
| [reply] [Watch: Dir/Any] |
|
Sorry I was not clear. I would like one radio button for each country - one button per row. The goal is to be able to select one country for updating, and have the data populate on a maintenance screen. For the one country, the user can update multiple fields for the one country with one transaction.I would like to set this up thru perl using cgi.pm. I don't use a templating system.
| [reply] [Watch: Dir/Any] |
|
Ok, now that that's clear, what have you tried? Perhaps start by generating the HTML table through perl. Hint a loop nested in another loop, the outer for the rows, and the inner for the cells within the rows. Then start worrying about the content of each cell.
| [reply] [Watch: Dir/Any] |
Re: table in a radio group
by polettix (Vicar) on Jul 22, 2005 at 20:58 UTC
|
Your node has been considered for deletion prior the approval. While I don't second the idea that this is not a question even remotely related to Perl (and this is why I approved it), you should at least show some effort instead of waiting for the supper.
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
Don't fool yourself.
| [reply] [Watch: Dir/Any] |
Re: table in a radio group
by bageler (Hermit) on Jul 23, 2005 at 01:02 UTC
|
try an html/javascript/DOM forum. | [reply] [Watch: Dir/Any] |
|
Thanks for everyone's help. I ended up using a hotlink for each line instead of using radio buttons as a means of choosing a line to change.
| [reply] [Watch: Dir/Any] |
|