Sounds like a good topic for a CFUG meeting. I was not aware that they used that 
terminology with FusionScript. Not exactly the best choice of terms IMHO.........
From: "Billy Cravens" <[EMAIL PROTECTED]>
Date: 2002/11/26 Tue AM 01:53:55 CST
To: <[EMAIL PROTECTED]>
Subject: RE: FusionScript question...

I don't think he's referring to Microsoft's ASP.  Active Server in FS
refers to the client side object (Java applet) that communicates with
the server without requiring an HTTP request.
 
**************************
Billy Cravens
Web and Software consulting
www.Architechx.com
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
Behalf Of Dave Cahall
Sent: Monday, November 25, 2002 6:08 PM
To: [EMAIL PROTECTED]
Subject: RE: FusionScript question...
 
Interesting. How do you get CF code to work on an Active Server Page?
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
Behalf Of Ron Mast
Sent: Monday, November 25, 2002 3:38 PM
To: [EMAIL PROTECTED]
Subject: RE: FusionScript question...
Well, I think you're partially correct Billy...:)
 
I fixed the problem by using eval(theVariableWithTheValueTrueOrFalse).
 
I thought that I probably needed to evaluate the variable, I did and it
worked...It just doesn't make sense to me why I have to evaluate a
variable with a value of "true" already inside <cf_fs_if
condition="'HERE'">.
 
Here's the activeServer page for further explanation:
<cf_fs_activeServer action="getAttributes">
<cfif session.priceBreak is 1>
 <cfif activeServer.vItem lt session.oqty1>
  <cfset theComp = "true">
  <cf_fs_activeServer action="return" name="rItem" value="#theComp#">
 <cfelse>
  <cfset theComp = "false">
  <cf_fs_activeServer action="return" name="rItem" value="#theComp#">
  <cf_fs_activeServer action="return" name="rItem2" value="#theComp#">
 </cfif>
 </cfif>
 
<cfif session.priceBreak is 2>
 <cfif activeServer.vItem lt session.oqty1>
  <cfset theComp = "true">
  <cf_fs_activeServer action="return" name="rItem" value="#theComp#">
 <cfelse>
  <cfset theComp = "false">
  <cf_fs_activeServer action="return" name="rItem" value="#theComp#">
 </cfif>
 <cfif activeServer.vItem lt session.oqty2>
  <cfset theSec = "true">
  <cf_fs_activeServer action="return" name="rItem2" value="#theSec#">
 <cfelse>
  <cfset theSec = "false">
  <cf_fs_activeServer action="return" name="rItem2" value="#theSec#">
 </cfif>
</cfif>  
 
What I did to fix my problem:
<cf_fs_if condition="eval(rItem)">
<cf_fs_if condition="eval(rItem2)">
 
I don't know...confusing stuff...Thanks for the response!
 
Ron
-----Original Message-----
From: Billy Cravens [mailto:[EMAIL PROTECTED]] 
Sent: Monday, November 25, 2002 2:48 PM
To: [EMAIL PROTECTED]
Subject: RE: FusionScript question...
What is the value?  The only things that evaluate to false are the
string "false", the string "no", the number 0, or a function that
returns a boolean.  Anything else should evaluate to true or throw an
error.
 
when I do an alert(theVariableI'mPassing); and getting the correct
value.
That makes me think you might be needing a len(value) or
isDefined(value) evaluation.
 
**************************
Billy Cravens
Web and Software consulting
www.Architechx.com
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
Behalf Of Ron Mast
Sent: Monday, November 25, 2002 12:18 PM
To: [EMAIL PROTECTED]
Subject: FusionScript question...
 
Hi All, 
Sorry to bother you guys on this.I have FusionScript v1.1 on a CFServer
5.0. 
Has anyone run into an issue with <cf_fs_if condition=""> statement? 
I'm passing a variable, pulling the value from an activeServer page, to
the condition attribute, and no matter what I do.It's evaluating the
variable as "true" when it should be false, even though when I do an
alert(theVariableI'mPassing); and getting the correct value.
But if I hardcode the value false like so: <cf_fs_if condition="false">
I then get the second part of my FS if statement to run.
Files are available upon request. 
Any help would be greatly appreciated.thanks in advance! 
Ron Mast 
Truth Hardware 
Webmaster 
(507)444-4748 

Title: Message

I don’t think he’s referring to Microsoft’s ASP.  Active Server in FS refers to the client side object (Java applet) that communicates with the server without requiring an HTTP request.

 

**************************

Billy Cravens

Web and Software consulting

www.Architechx.com

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Dave Cahall
Sent:
Monday, November 25, 2002 6:08 PM
To: [EMAIL PROTECTED]
Subject: RE: FusionScript question...

 

Interesting. How do you get CF code to work on an Active Server Page?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ron Mast
Sent:
Monday, November 25, 2002 3:38 PM
To: [EMAIL PROTECTED]
Subject: RE: FusionScript question...

Well, I think you're partially correct Billy...:)

 

I fixed the problem by using eval(theVariableWithTheValueTrueOrFalse).

 

I thought that I probably needed to evaluate the variable, I did and it worked...It just doesn't make sense to me why I have to evaluate a variable with a value of "true" already inside <cf_fs_if condition="'HERE'">.

 

Here's the activeServer page for further explanation:

<cf_fs_activeServer action="">

<cfif session.priceBreak is 1>
 <cfif activeServer.vItem lt session.oqty1>
  <cfset theComp = "true">
  <cf_fs_activeServer action="" name="rItem" value="#theComp#">
 <cfelse>
  <cfset theComp = "false">
  <cf_fs_activeServer action="" name="rItem" value="#theComp#">
  <cf_fs_activeServer action="" name="rItem2" value="#theComp#">
 </cfif>
 </cfif>

 

<cfif session.priceBreak is 2>
 <cfif activeServer.vItem lt session.oqty1>
  <cfset theComp = "true">
  <cf_fs_activeServer action="" name="rItem" value="#theComp#">
 <cfelse>
  <cfset theComp = "false">
  <cf_fs_activeServer action="" name="rItem" value="#theComp#">
 </cfif>
 <cfif activeServer.vItem lt session.oqty2>
  <cfset theSec = "true">
  <cf_fs_activeServer action="" name="rItem2" value="#theSec#">
 <cfelse>
  <cfset theSec = "false">
  <cf_fs_activeServer action="" name="rItem2" value="#theSec#">
 </cfif>
</cfif> 

 

What I did to fix my problem:

<cf_fs_if condition="eval(rItem)">

<cf_fs_if condition="eval(rItem2)">

 

I don't know...confusing stuff...Thanks for the response!

 

Ron

-----Original Message-----
From: Billy Cravens [mailto:[EMAIL PROTECTED]]
Sent:
Monday, November 25, 2002 2:48 PM
To: [EMAIL PROTECTED]
Subject: RE: FusionScript question...

What is the value?  The only things that evaluate to false are the string “false”, the string “no”, the number 0, or a function that returns a boolean.  Anything else should evaluate to true or throw an error.

 

when I do an alert(theVariableI'mPassing); and getting the correct value.

That makes me think you might be needing a len(value) or isDefined(value) evaluation.

 

**************************

Billy Cravens

Web and Software consulting

www.Architechx.com

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ron Mast
Sent:
Monday, November 25, 2002 12:18 PM
To: [EMAIL PROTECTED]
Subject: FusionScript question...

 

Hi All,
Sorry to bother you guys on this…I have FusionScript v1.1 on a CFServer 5.0.

Has anyone run into an issue with <cf_fs_if condition=""> statement?

I'm passing a variable, pulling the value from an activeServer page, to the condition attribute, and no matter what I do…It's evaluating the variable as "true" when it should be false, even though when I do an alert(theVariableI'mPassing); and getting the correct value.

But if I hardcode the value false like so: <cf_fs_if condition="false"> I then get the second part of my FS if statement to run.

Files are available upon request.

Any help would be greatly appreciated…thanks in advance!

Ron Mast
Truth Hardware
Webmaster
(507)444-4748

Reply via email to