"Matt" <matt_marshall@manning-napier.com> wrote in message
news:1121708390.332500.284920@g43g2000cwa.googlegr oups.com...[color=blue]
> Figured it out.... I needed to pass the boolena value as a literal
> string so I placed double quotes around the boolean value and single
> quotes around the parameter.
>
> onclick="ShowSpecifiedPeriod('<%If bShowPeriod = false then
> Response.Write "true" else Response.Write "false"%>')"[/color]
Since you can't pass a "boolean value" on a URL at all (all you are
passing are the string "true" or the string "false" which then have
special meaning to the server-side processing), I usually pass either 0
or 1. It is shorter (if the resulting server request is a GET) and it is
much easier to deal with on the server (using server-side JavaScript in
this case):
var bShowPeriod = (1 == +Request.value('ShowPeriod'));
--
Grant Wagner <gwagner@agricoreunited.com>
comp.lang.javascript FAQ -
http://jibbering.com/faq