Re: Problems with HTML::TEMPLATE

Clifton Royston <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
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  --  [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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.