
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] [or] tag problems
Quoting JT Justman (ic@signless.com):
> ----- Original Message -----
> From: "Mike Heins" <mheins@redhat.com>
> To: <interchange-users@interchange.redhat.com>
> Sent: Tuesday, September 04, 2001 2:43 PM
> Subject: Re: [ic] [or] tag problems
>
> > Yes -- you aren't thinking about HTML behavior.
> >
> > If a checkbox is off, the browser doesn't submit anything for it, i.e.
> > you don't get /cgi-bin/yourcat?s_cat_1051=&s_cat_1052=on, you get
> > only /cgi-bin/yourcat?s_cat_1052=on.
> >
> > So, Interchange has no idea you want to reset the persistent value
> > s_cat_1051.
> >
> > Probably what you want is:
> >
> > [if cgi s_cat_1051]
> > [or cgi s_cat_1052]
> > Neck Measurement: <input type="text" name="meas_m_neck" width="8"><BR>
> > [/if]
> >
>
> Maybe I wasn't clear... I am checking the box, and the value is being passed
> as true. It's simply not evaluating as I expect. Also, all of the variables
> are explicitly reset on the previous page.
>
> I tried changing 'value' to 'cgi', but there was no change.
>
> Still stumped,
In that case, I am too. I tested this (and it is tested for in our
regression tests) with this page:
[if cgi val1]
[or cgi val2]
One of them is set.
[else]
Neither is set.
[/else]
[/if]
<P>
[if cgi val1]
[and cgi val2]
Both of them are set.
[/if]
<p>
[page href=@@MV_PAGE@@
form="
val1=0
val2=0
"] Neither [/page]
<p>
[page href=@@MV_PAGE@@
form="
val1=1
val2=0
"] Val 1 [/page]
<p>
[page href=@@MV_PAGE@@
form="
val1=0
val2=1
"] Val 2 [/page]
<p>
[page href=@@MV_PAGE@@
form="
val1=1
val2=1
"] Both [/page]
--
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH 45013
phone +1.513.523.7621 <mheins@redhat.com>
For a successful technology, reality must take precedence over public
relations, for Nature cannot be fooled. -- Dick Feynman
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users