Re: setting <input> checked

Bill McCormick <[email protected]> Fri, 5 Dec 2014 11:39:11 -0600
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <CAK_+aRBKLSvfhi=_tAj-Ern2DE=9txtE2aTsyxz+waN0z6CATg@mail.gmail.com>
--===============1088349759384913359==
Content-Type: multipart/alternative; boundary=001a11391e1c3b43d005097b8fd0

--001a11391e1c3b43d005097b8fd0
Content-Type: text/plain; charset=UTF-8

Yea, I had already tried the single & and it does not work.

On Fri, Dec 5, 2014 at 11:01 AM, Larry Leszczynski <[email protected]>
wrote:

> Actually, that probably only works in a [% PERL %] block...
>
> On Fri, Dec 5, 2014, at 10:00 AM, Larry Leszczynski wrote:
> > Hi Bill -
> >
> > On Fri, Dec 5, 2014, at 09:56 AM, Bill McCormick wrote:
> > > okay, so now the bitwise *and* is giving me problems:
> > >
> > > <input class="radio" type="radio" name="recipe_type" value="Warmup" [%
> > > 'checked="1"' IF 15 && 16 %]/>Warmup
> >
> > You're doing logical AND, not bitwise AND.  You want "15 & 16".
> >
> > Larry
> >
> > _______________________________________________
> > templates mailing list
> > [email protected]
> > http://mail.template-toolkit.org/mailman/listinfo/templates
>
> _______________________________________________
> templates mailing list
> [email protected]
> http://mail.template-toolkit.org/mailman/listinfo/templates
>

--001a11391e1c3b43d005097b8fd0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Yea, I had already tried the single &amp; and it does not =
work.<br><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Fri, =
Dec 5, 2014 at 11:01 AM, Larry Leszczynski <span dir=3D"ltr">&lt;<a href=3D=
"mailto:[email protected]" target=3D"_blank">[email protected]</a>&gt=
;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex">Actually, that probably o=
nly works in a [% PERL %] block...<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
On Fri, Dec 5, 2014, at 10:00 AM, Larry Leszczynski wrote:<br>
&gt; Hi Bill -<br>
&gt;<br>
&gt; On Fri, Dec 5, 2014, at 09:56 AM, Bill McCormick wrote:<br>
&gt; &gt; okay, so now the bitwise *and* is giving me problems:<br>
&gt; &gt;<br>
&gt; &gt; &lt;input class=3D&quot;radio&quot; type=3D&quot;radio&quot; name=
=3D&quot;recipe_type&quot; value=3D&quot;Warmup&quot; [%<br>
&gt; &gt; &#39;checked=3D&quot;1&quot;&#39; IF 15 &amp;&amp; 16 %]/&gt;Warm=
up<br>
&gt;<br>
&gt; You&#39;re doing logical AND, not bitwise AND.=C2=A0 You want &quot;15=
 &amp; 16&quot;.<br>
&gt;<br>
&gt; Larry<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; templates mailing list<br>
&gt; <a href=3D"mailto:[email protected]">templates@template-t=
oolkit.org</a><br>
&gt; <a href=3D"http://mail.template-toolkit.org/mailman/listinfo/templates=
" target=3D"_blank">http://mail.template-toolkit.org/mailman/listinfo/templ=
ates</a><br>
<br>
_______________________________________________<br>
templates mailing list<br>
<a href=3D"mailto:[email protected]">templates@template-toolki=
t.org</a><br>
<a href=3D"http://mail.template-toolkit.org/mailman/listinfo/templates" tar=
get=3D"_blank">http://mail.template-toolkit.org/mailman/listinfo/templates<=
/a><br>
</div></div></blockquote></div><br></div></div>

--001a11391e1c3b43d005097b8fd0--


--===============1088349759384913359==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

--===============1088349759384913359==--