On Wed, Mar 16, 2005 at 08:29:34AM -0800, Rama Srinivas wrote:
> Some of the entries in my table are radio buttons. I am prepopulating
> them but for some reason they donot seem to be prepopulated. I tried
> to do a view page source to see if the html is properly generated. It
> seems to do so.
>
> All the other form fields are working fine. except radio buttons.
>
> IS there any known issue with radio buttons prepopulation when using
> html tempalates.
No, I use HTML::Templates to preset radiobuttons to certain values,
including multiline tables full of radio-buttons.
> Here is the snippet of the code in my tmpl file.
>
> <td>Beeps: yes:
> <input type="radio" name="beepStatus" value="yes" <TMPL_VAR
> NAME="yesBeeps"> >
>
> </td>
Looks OK to me, assuming yesBeeps is actually set to "checked".
> The yesBeeps param displays checked or is empty string depending if
> that radio button has to be prepopulated or not. But suprising even if
> it is marked as checked it does not show that in my html page.
For debugging purposes, it can be helpful to hide some comments in your
template with TMPL_VAR values in them, e.g.
<!-- Value of yesBeeps: <TMPL_VAR NAME="yesBeeps"> -->
> Any help or hints would help. Or i need to switch to the old style of
> printing html doc through my perl program
That works too...
-- Clifton
--
Clifton Royston -- [EMAIL PROTECTED]
Tiki Technologies Lead Programmer/Software Architect
"I'm gonna tell my son to grow up pretty as the grass is green
And whip-smart as the English Channel's wide..."
-- 'Whip-Smart', Liz Phair
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Html-template-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/html-template-users