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 & 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"><<a href=3D= "mailto:[email protected]" target=3D"_blank">[email protected]</a>>= ;</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> > Hi Bill -<br> ><br> > On Fri, Dec 5, 2014, at 09:56 AM, Bill McCormick wrote:<br> > > okay, so now the bitwise *and* is giving me problems:<br> > ><br> > > <input class=3D"radio" type=3D"radio" name= =3D"recipe_type" value=3D"Warmup" [%<br> > > 'checked=3D"1"' IF 15 && 16 %]/>Warm= up<br> ><br> > You're doing logical AND, not bitwise AND.=C2=A0 You want "15= & 16".<br> ><br> > Larry<br> ><br> > _______________________________________________<br> > templates mailing list<br> > <a href=3D"mailto:[email protected]">templates@template-t= oolkit.org</a><br> > <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==--