you can't use CF to check for the existence of a JS variable. one of them is server side and one is client side.
the JS variable is set after the page reaches the browser, at which point CF has done its job. On 4/20/07, Rick Faircloth <[EMAIL PROTECTED]> wrote: > How do I set a variable in Javascript, > then check for its value in CF? > > <CFPARAM Name="JS" Default="False"> > > <script type="text/javascript"> > > var JS; > JS = "true"; > > </script> > > <CFIF JS is "true"> > > do something > > <CFELSE> > > do something else > > </CFIF> > > ???? > > Rick > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275948 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4