I forgot to include this.

This is an example of how I use cfscript.

<cfif StructCount(session) EQ "4">
<!--- Initialize session vars --->
  <cfscript>

        session.dsn = 'cfchick';
        session.JSEnabled = 'No';
        session.root_path = '';
        session.path_to_images = '#session.root_path#images/';
        session.bgcolor = '##FFFFFF';
        session.fontcolor = '##000000';
        session.fontface = 'Verdana';
        session.fontsize = '2';
        session.linkcolor = '##0000ff';
        session.alinkcolor = '##ff0000';
        session.vlinkcolor = '##993399';
        session.tableborder = '0';

  </cfscript>

</cfif> 

It's useful if you have a lot of sets.  If I didn't use cfscript I'd have to
type out <cfset foo = bar> for all of those vars above.  It's easier this
way.  I'm sure that it's useful for other things as well but I've not had
the need.

--K

-----Original Message-----
From: Chapman, Katrina [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 25, 2000 3:36 PM
To: CF-Talk
Subject: RE: <CFSCRIPT>


You can also try the docs.

http://127.0.0.1/CFDOCS/CFML_Language_Reference/2_ColdFusion_Tags/lr2_073.ht
m

--K

-----Original Message-----
From: Brad Roberts [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 25, 2000 1:53 PM
To: CF-Talk
Subject: RE: <CFSCRIPT>


The Advanced web application construction kit has a lot on the subject.

Brad

-----Original Message-----
From: Peter Benoit [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 25, 2000 4:38 PM
To: CF-Talk
Subject: RE: <CFSCRIPT>


Well unless I'm looking in all the wrong spots, the QUE book of CF4.0 web
application construction kit doesn't show but a one liner about CFSCRIPT.
Which books might you be referring to?

*  -----Original Message-----
*  From: Simon Horwith [mailto:[EMAIL PROTECTED]]
*  Sent: Wednesday, October 25, 2000 4:14 PM
*  To: CF-Talk
*  Subject: RE: <CFSCRIPT>
*
*
*  any 4.x book, or cfstudio 4.x help files
*  ~Simon
*
*  -----Original Message-----
*  From: Peter Benoit [mailto:[EMAIL PROTECTED]]
*  Sent: Wednesday, October 25, 2000 4:04 PM
*  To: CF-Talk
*  Subject: <CFSCRIPT>
*
*
*  I see people using cfscript, but my cold fusion book shows
*  no functions
*  keywords or anything!  Where can I find help on this tag and
*  it's uses?
*
*  -Pete
*
*  -------------------------------------------------------------
*  ---------------
*  --------------------
*  Archives: http://www.mail-archive.com/[email protected]/
*  Unsubscribe:
*  http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
*  message with 'unsubscribe' in the body to
*  [EMAIL PROTECTED]
*  -------------------------------------------------------------
*  -----------------------------------
*  Archives: http://www.mail-archive.com/[email protected]/
*  Unsubscribe:
*  http://www.houseoffusion.com/index.cfm?sidebar=lists or send
*  a message with 'unsubscribe' in the body to
*  [EMAIL PROTECTED]
*

----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]

----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to