I tried that after I emailed:
<cfif not isDefined("session.manager_id")>
<cfinclude template="../login/include_login_form.cfm">
</cfif>
Performs the same...
> -----Original Message-----
> From: Rob Parkhill [mailto:[email protected]]
> Sent: Tuesday, December 16, 2008 11:13 PM
> To: cf-talk
> Subject: Re: Is it not possible to skip js with cfif?
>
> Rick,
> You will need to put the JS in a CFinclude file
>
> <cfif not isDefined("session.manager_id")>
> <cfinclude file="loginscript.cfm">
> </cfif>
>
> Rob
>
> On Tue, Dec 16, 2008 at 10:59 PM, Rick Faircloth
> <[email protected]>wrote:
>
> > True, true...
> >
> > However, I'm trying to run this:
> >
> > <cfif not isDefined("session.manager_id")>
> >
> > <run ajax login code>
> >
> > </cfif>
> >
> > But it seems that the condition cfif is being ignored.
> > I know session.manager_id is defined because I output
> > the variable on the login form itself if it's defined.
> >
> > ???
> >
> >
> >
> > > -----Original Message-----
> > > From: Charlie Griefer [mailto:[email protected]]
> > > Sent: Tuesday, December 16, 2008 10:55 PM
> > > To: cf-talk
> > > Subject: Re: Is it not possible to skip js with cfif?
> > >
> > > it is.
> > > (it's also good to use the right comparison operator)
> > >
> > > On Tue, Dec 16, 2008 at 7:50 PM, Rick Faircloth <
> > [email protected]>wrote:
> > >
> > > > Is it not possible to use conditional statements
> > > > to skip javascript?
> > > >
> > > > <cfif 1=0>
> > > >
> > > > <javascript code>
> > > >
> > > > </cfif>
> > > >
> > > > Rick
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316850
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4