Re: [htmltmpl] Problems with HTML::TEMPLATE
Brought to you by:
samtregar
From: Clifton R. <cli...@ti...> - 2005-03-17 03:21:25
|
On Wed, Mar 16, 2005 at 07:15:08PM -0800, Rama Srinivas wrote: > Hello all, > > Thanks for the feed back. > > I had to specifically mention CHECKED="CHECKED" in the if statement to make > it work. > Simply by saying CHECKED alone (though a valid html attribute) does not seem > to work. That's actually not a function of HTML::Template, it's a function of the browser. I seem to recall I noticed something like this with IE, whereas Mozilla worked better, but I could have it backwards. > Basically to be more clear I tried doing this first > <input type="radio" name="beepStatus" value="yes" <tmpl_if > yesBeeps>cheecked</tmpl_if> it did not work. > > but by doing this it worked > > <input type="radio" name="beepStatus" value="yes" <tmpl_if > yesBeeps>cheecked="checked"</tmpl_if> worked out well. > > I am guessing the html template engine must be looking for some name-value > pairs and just by seeing a single value with out a matching name would have > rejected interpreting it. Just for future reference, H::T doesn't snoop the values that way. For all it cares, it could say "Pastrami!" -- Clifton -- Clifton Royston -- cli...@ti... 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 |