RE: Just Wondering Why

2003-11-07 Thread Kwang Suh
This behaviour is not specific to fusebox.CF just works this way.
included templates are not automatically parsed.You have to have
cfoutput tags in the included page.

-Original Message-
From: Mickael [mailto:[EMAIL PROTECTED] 
Sent: November 6, 2003 8:52 PM
To: CF-Talk
Subject: Just Wondering Why

Hello All,

Sorry if this is a novice question.I am trying to learn fusebox and find
my self making smaller templates and and more includes (which I guess is
good I haven't decided yet)

My question is this.Lets say that the value of myvariable is house

So when I do this

cfoutput
#myvariable#
/cfoutput

I get an output of house

But when I do this

cfoutput

cfinclude template=dsp_myvariablepage.cfm (dsp_myvariablepage.cfm's
content is#myvariable# )

/cfoutput

I get #myvariable#instead of house.If include the template and the
content is #myvariable# would it not be in between the two cfoutputs once it
is included?

Sorry if this question is basic, just trying to understand it.

Thanks

Mike

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: MySQL and CFMX61

2003-11-07 Thread Kwang Suh
Use innoDB tables for transaction support.
Relatively limited SQL support.

 
Use datetime or date for date fields.

-Original Message-
From: Stacy Young [mailto:[EMAIL PROTECTED] 
Sent: November 6, 2003 7:57 PM
To: CF-Talk
Subject: MySQL and CFMX61

I'm pretty much a newbie when it comes to CMFX and MySQL. Any major
gotchas to look out for?...and is it typically better to use datetime or
timestamp for date fields in the DB?

Thanks!

Stace

AVIS IMPORTANT:
--- 
Les informations contenues dans le present document et ses pieces jointes
sont strictement confidentielles et reservees a l'usage de la (des)
personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez
avise que toute divulgation, distribution, copie, ou autre utilisation de
ces informations est strictement prohibee. Si vous avez recu ce document par
erreur, veuillez s'il vous plait communiquer immediatement avec l'expediteur
et detruire ce document sans en faire de copie sous quelque forme.

WARNING:
---
The information contained in this document and attachments is confidential
and intended only for the person(s) named above. If you are not the intended
recipient you are hereby notified that any disclosure, copying,
distribution, or any other use of the information is strictly prohibited. If
you have received this document by mistake, please notify the sender
immediately and destroy this document and attachments without making any
copy of any kind.

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Just Wondering Why

2003-11-07 Thread Pascal Peters
The cfoutput has to be in the same physical template as the variable call. If it wasn't that way, we would have a lot of trouble with includes and nested cfoutput.

 
There are some other tags that have to be in the same template. cfquery and cfqueryparam is an example.

 
Pascal

	-Oorspronkelijk bericht- 
	Van: Mickael [mailto:[EMAIL PROTECTED] 
	Verzonden: vr 7/11/2003 4:52 
	Aan: CF-Talk 
	CC: 
	Onderwerp: Just Wondering Why
	
	
	My question is this.Lets say that the value of myvariable is house
	
	So when I do this
	
	cfoutput
	#myvariable#
	/cfoutput
	
	I get an output of house
	
	But when I do this
	
	cfoutput
	
	cfinclude template=dsp_myvariablepage.cfm (dsp_myvariablepage.cfm's content is#myvariable# )
	
	/cfoutput
	
	I get #myvariable#instead of house.If include the template and the content is #myvariable# would it not be in between the two cfoutputs once it is included?
	


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CFDUMP question, attributes scope - CF 5

2003-11-07 Thread Pascal Peters
Are you sure you have the attributes scope defined yet. Unlike form or url, the scope doesn't always exist. If you are not in a Custom tag and you define vars in the attributes scope, you have to create the scope as a structure before using it.

 
cfset attributes.test = 1
!--- works ---
cfdump var=#attributes.test#
!--- doesn't work ---
cfdump var=#attributes#

 
cfset attributes = StructNew()
cfset attributes.test = 1
!--- works ---
cfdump var=#attributes.test#
!--- works ---
cfdump var=#attributes#

 
Pascal

	-Oorspronkelijk bericht- 
	Van: Stephen Hait [mailto:[EMAIL PROTECTED] 
	Verzonden: vr 7/11/2003 7:23 
	Aan: CF-Talk 
	CC: 
	Onderwerp: CFDUMP question, attributes scope - CF 5
	
	
	I have CF 5 Enterprise running locally and a client with CF 5 
	Professional. I can run CFDUMP var=#attributes# locally no 
	problem. Running this on the client's machine gives me an error 
	resolving parameter ATTRIBUTES. Does anyone know what 
	problem I'm running into here?
	


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: cfexecute on unix

2003-11-07 Thread Adam Hope
Hi All,

 
We are in the process of migrating our CF5 system to CFMX 6.1 on Solaris and we now need to use cfexecute and pass multiple arguments with spaces into it.

 
Does anyone have a workaround that is more complete than the macromedia suggestion below? In other words does anyone have a working custom cfx to do this or a better/different solution?

 
Thanks,

 
Adam.

 
-Original Message-
From: Hiroshi Okugawa [mailto:[EMAIL PROTECTED] 
Sent: 04 November 2003 20:21
To: CF-Talk
Subject: RE: cfexecute on unix

	Unfortunately cfexecute doesn't work correctly with argument which contains
	spaces. (bugid 50604)
	# It's Linux/Unix only.
	
	I think you may create custom java cfx for workaround.
	# use Runtime.getRuntime().exec(String []) instead of
	Runtime.getRuntime().exec(String)
	
	sorry for inconvenience.
	
	Thanks,
	-- 
	Hiroshi


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: cfexecute on unix

2003-11-07 Thread Hugo Ahlenius
A workaround that we looked into:

You can cfexecute a shell-script with arguments, of where the first
argument is the file that you really want to execute, then the script
fixes the problem and executes the actual file. It is not a very beautiful
solution.

(Still waiting for a tech note on this)

/Hugo

-
Hugo AhleniusE-Mail: [EMAIL PROTECTED]
Project Officer Phone:+46 8 230460
UNEP GRID-ArendalFax:+46 8 230441
Stockholm OfficeMobile:+46 733 467111
 WWW: http://www.grida.no
- 



| -Original Message-
| From: Adam Hope [mailto:[EMAIL PROTECTED]
| Sent: Friday, November 07, 2003 11:20
| To: CF-Talk
| Subject: RE: cfexecute on unix
|
|
| Hi All,
|
| We are in the process of migrating our CF5 system to CFMX 6.1
| on Solaris and we now need to use cfexecute and pass multiple
| arguments with spaces into it.
|
| Does anyone have a workaround that is more complete than the
| macromedia suggestion below? In other words does anyone have
| a working custom cfx to do this or a better/different solution?
|
| Thanks,
|
| Adam.
|
| -Original Message-
| From: Hiroshi Okugawa [mailto:[EMAIL PROTECTED]
| Sent: 04 November 2003 20:21
| To: CF-Talk
| Subject: RE: cfexecute on unix
|
|
|
| 	Unfortunately cfexecute doesn't work correctly with
| argument which contains
| 	spaces. (bugid 50604)
| 	# It's Linux/Unix only.
|
| 	I think you may create custom java cfx for workaround.
| 	# use Runtime.getRuntime().exec(String []) instead of
| 	Runtime.getRuntime().exec(String)
|
| 	sorry for inconvenience.
|
| 	Thanks,
| 	-- 
| 	Hiroshi
|
|
| 
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CF-Talk: Digest every 6 hours

2003-11-07 Thread IBC Staff - Shane Kelly
Thanks for your email.

Shane is currently out of the office until the 23rd of November.
If your enquiry requires urgent attention, you may contact[EMAIL PROTECTED]

Regards
IBC Postmaster
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: best way to force a save as no matter what

2003-11-07 Thread Jochem van Dieten
Vamp wrote:

 I want to force a download no matter the file name and extension.
 
 so example .pdf I don't want it to launch the program I want it to launch save as box instead.
 
 whats the best way to do this??

Make sure your visitors don't use IE and then follow the 
instructions in RFC 2616 section 19.5.1

Jochem

-- 
You have the right
to remain silent
but should you?
- Loesje


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Just Wondering Why

2003-11-07 Thread Mickael
Thanks that answers my question.I appreciate the extra info as well.

Mike
- Original Message - 
From: Pascal Peters 
To: CF-Talk 
Sent: Friday, November 07, 2003 2:59 AM
Subject: RE: Just Wondering Why

The cfoutput has to be in the same physical template as the variable call. If it wasn't that way, we would have a lot of trouble with includes and nested cfoutput.

There are some other tags that have to be in the same template. cfquery and cfqueryparam is an example.

Pascal

-Oorspronkelijk bericht- 
Van: Mickael [mailto:[EMAIL PROTECTED] 
Verzonden: vr 7/11/2003 4:52 
Aan: CF-Talk 
CC: 
Onderwerp: Just Wondering Why

My question is this.Lets say that the value of myvariable is house

So when I do this

cfoutput
#myvariable#
/cfoutput

I get an output of house

But when I do this

cfoutput

cfinclude template=dsp_myvariablepage.cfm (dsp_myvariablepage.cfm's content is#myvariable# )

/cfoutput

I get #myvariable#instead of house.If include the template and the content is #myvariable# would it not be in between the two cfoutputs once it is included?


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Just Wondering Why

2003-11-07 Thread Sutton Yamanashi
Hey Mike.

 
I do not think cfoutput carries over to any included file.So, you Can
have a pair of cfoutput tags nesting your included file, but this would
only be necessary if the file name itself was a variable:

 
cfoutput
cfincude template=dsp_#variablepagename#
/cfoutout !--- I am not saying this is a good idea ---

 
But, you absolutely must use the cfoutput tags within the included file if
you are calling a variable within it.As the outside cfoutput tags do not
carry over, you will not get a nested cfoutput error.

 
HTH,
-sutton

_

From: Mickael [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 06, 2003 10:52 PM
To: CF-Talk
Subject: Just Wondering Why

Hello All,

Sorry if this is a novice question.I am trying to learn fusebox and find
my self making smaller templates and and more includes (which I guess is
good I haven't decided yet)

My question is this.Lets say that the value of myvariable is house

So when I do this

cfoutput
#myvariable#
/cfoutput

I get an output of house

But when I do this

cfoutput

cfinclude template=dsp_myvariablepage.cfm (dsp_myvariablepage.cfm's
content is#myvariable# )

/cfoutput

I get #myvariable#instead of house.If include the template and the
content is #myvariable# would it not be in between the two cfoutputs once it
is included?

Sorry if this question is basic, just trying to understand it.

Thanks

Mike

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Just Wondering Why

2003-11-07 Thread Philip Arnold
 I do not think cfoutput carries over to any included file.So, you
Can
 have a pair of cfoutput tags nesting your included file, but this
would
 only be necessary if the file name itself was a variable:

 cfoutput
cfincude template=dsp_#variablepagename#
 /cfoutout !--- I am not saying this is a good idea ---

This isn't the case - within any CF tag, the attributes can be part or
all variables

Like cfquery datasource=#application.DSN#


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Just Wondering Why

2003-11-07 Thread Pascal Peters
No need for cfoutput with cf-tag attribute values

 
cftag attr=#var# will always evaluate var.

	-Oorspronkelijk bericht- 
	Van: Sutton Yamanashi [mailto:[EMAIL PROTECTED] 
	Verzonden: vr 7/11/2003 14:36 
	Aan: CF-Talk 
	CC: 
	Onderwerp: RE: Just Wondering Why
	
	
	only be necessary if the file name itself was a variable:
	
	
	cfoutput
	cfincude template=dsp_#variablepagename#
	/cfoutout !--- I am not saying this is a good idea ---
	


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: best way to force a save as no matter what

2003-11-07 Thread Tyler Clendenin
use cfcontent and cfheader

 
cfheader name=Content-Disposition value=attachment;
filename=MyFileName.Ext
cfcontent file=MyFileName.Ext deletefile=No

 
Tyler Clendenin


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




OT: VoIP

2003-11-07 Thread Dan Phillips \(CFXHosting.com\)
Sorry for the OT. Is there anyone on this list in the Southern Ontario
region that knows on companies that provide Voice Over IP or Broadband
phone service?

Thanks! 

Dan Phillips
www.CFXHosting.com 
1-866-239-4678 x105
[EMAIL PROTECTED]

.

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: VoIP

2003-11-07 Thread Gabriel Robichaud
Have you tried Nortel? ;)

 
-Original Message-
From: Dan Phillips (CFXHosting.com) [mailto:[EMAIL PROTECTED]
Sent: November 7, 2003 9:31 AM
To: CF-Talk
Subject: OT: VoIP

 
Sorry for the OT. Is there anyone on this list in the Southern Ontario
region that knows on companies that provide Voice Over IP or Broadband
phone service?

Thanks! 

Dan Phillips
www.CFXHosting.com 
1-866-239-4678 x105
[EMAIL PROTECTED]

.

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: cfscript question...

2003-11-07 Thread Mark A. Kruger - CFG
I like this better:

IF(StructKeyExists(form,Listgeat(fieldlist,i)) {
 
 
}

One of the reasons I like using Cfscript is to get rid of pound signs and quotes- seems more readable. Just my 02.

-mark

-Original Message-
From: Che Vilnonis [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 3:46 PM
To: CF-Talk
Subject: RE: cfscript question...

Using CF5. The error is...

Parameter 1 of function IsDefined which is now
FORM[listgetat(FieldList,i)] must be a syntactically valid variable name.

 -Original Message-
 From: Tony Weeg [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 06, 2003 4:31 PM
 To: CF-Talk
 Subject: RE: cfscript question...

 don't you need {}'s around theFORM[listgetat(FieldList,i)] = ;

 or if not, what error are you getting?

 ...tony

 tony weeg
 senior web applications architect
 navtrak, inc.
 www.navtrak.net
 [EMAIL PROTECTED]
 410.548.2337

 -Original Message-
 From: Che Vilnonis [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 06, 2003 4:26 PM
 To: CF-Talk
 Subject: cfscript question...

 What am I doing wrong here?

 cfscript
 // Intialize List
 FieldList =

CustEmail,CustPassword,CustPassword2,BillFirstName,BillLastName,BillAddress
 ,BillAddress2,BillCity,BillState,BillZip,BillPhone;

 // Loop thru list and define all FORM variables for(i=1; i LTE
 listlen(FieldList); i = i + 1)
 if (NOT isDefined(FORM[listgetat(FieldList,i)]))
 FORM[listgetat(FieldList,i)] = ;
 /cfscript

 Che Vilnonis
 Application Developer
 Advertising Systems Incorporated
 8470C Remington Avenue
 Pennsauken, NJ 08110
 p: 856.488.2211
 f: 856.488.1990
 www.asitv.com


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: OT: VoIP

2003-11-07 Thread Thomas Chiverton
On Friday 07 Nov 2003 14:30 pm, Dan Phillips \(CFXHosting.com\) wrote:
 Sorry for the OT. Is there anyone on this list in the Southern Ontario
 region that knows on companies that provide Voice Over IP or Broadband
 phone service?

Skype ?

-- 
Tom Chiverton 
Advanced ColdFusion Programmer

Tel: +44(0)1749 834997
email: [EMAIL PROTECTED]
BlueFinger Limited
Underwood Business Park
Wookey Hole Road, WELLS. BA5 1AF
Tel: +44 (0)1749 834900
Fax: +44 (0)1749 834901
web: www.bluefinger.com
Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple
Quay, BRISTOL. BS1 6EG.
*** This E-mail contains confidential information for the addressee
only. If you are not the intended recipient, please notify us
immediately. You should not use, disclose, distribute or copy this
communication if received in error. No binding contract will result from
this e-mail until such time as a written document is signed on behalf of
the company. BlueFinger Limited cannot accept responsibility for the
completeness or accuracy of this message as it has been transmitted over
public networks.***

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Release Date for Blue Dragon using .net

2003-11-07 Thread Jeremy Brodie
When will the .net version of Blue Dragon be released to the masses? Any new information on the subject.

Thank you

Jeremy Brodie
Intelix
an Edgewater Technology Solutions Company

web: http://www.edgewater.com
phone:(703) 815-2500
nasdaq symbol: EDGE
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Novell to acquire SUSE

2003-11-07 Thread Jochem van Dieten
John Paul Ashenfelter wrote:

 I always thought the key reason to choose a Linux distro was because it was *better* than Windows, not because it was *cheaper*.

Or perhaps because it is Open Source, which might be a 
requirement for the job.

 I'll echo Dave Watts and others comments though -- if you're running a production server, you should typically be running a supported commercial server OS, whether that's Windows Server, Solaris, RedHat Enterprise, SuSe Server, etc.

But the thing about Open Source is that it is not necessarily the 
software vendor that has to deliver this support. The reason that 
vendor support is so important with Closed Source is that nobody 
else can get to the source to see what is really going on and fix 
the problem. With Open Source, you need a hacker with sufficient 
skills, which can be hired independently from the software vendor.

Jochem

-- 
You have the right
to remain silent
but should you?
- Loesje


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




SQL server

2003-11-07 Thread David Brown
I know this is the wrong group, but I am in a jam.Our DBA (I am not one) did not backup one of our databases.There is a table with some rows that have been deleted.Is there a way to restore them from logs.If so could you point me to a link on how to do this.

I would be very greatful.

David Brown


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Stock feeds

2003-11-07 Thread Roth, John
All,
	Since there was a little talk abbot weather feeds, does anyone now
of any Stock Market feeds?Also, I have not played with RSS at all, but is
there anything like that for RSS?

I am on digest mode, so if you want an immediate response, CC me directly.
;-)

Yours Truly,
J.B. Roth
Web Developer
GenTek Inc.

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: SQL server

2003-11-07 Thread C. Hatton Humphrey
It depends on how long ago the rows were added and if your DBA has a
Transaction Log Recovery tool.They ain't cheap but they'll fix the
problem.

I've had to deal with problems like that before... NOT a fun thing to do.
Best of luck!

Hatton Humphrey
-Original Message-
From: David Brown [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 10:57 AM
To: CF-Talk
Subject: SQL server

I know this is the wrong group, but I am in a jam.Our DBA (I am not one)
did not backup one of our databases.There is a table with some rows that
have been deleted.Is there a way to restore them from logs.If so could
you point me to a link on how to do this.

I would be very greatful.

David Brown


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: SQL server

2003-11-07 Thread Andy Ousterhout
Try this list:

http://www.sunbelt-software.com/sql_list_charter.htm
-Original Message-
From: David Brown [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 9:57 AM
To: CF-Talk
Subject: SQL server

I know this is the wrong group, but I am in a jam.Our DBA (I am not one)
did not backup one of our databases.There is a table with some rows that
have been deleted.Is there a way to restore them from logs.If so could you
point me to a link on how to do this.

I would be very greatful.

David Brown


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Just Wondering Why

2003-11-07 Thread cfhelp
As a practice I try and make each template self contained (You can open it
with the browser by its self).All Queries, Set Params and output all in
one file. Makes troubleshooting easier and reusable code.

Rick

_

From: Kwang Suh [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 07, 2003 1:17 AM
To: CF-Talk

This behaviour is not specific to fusebox.CF just works this way.
included templates are not automatically parsed.You have to have
cfoutput tags in the included page.

-Original Message-
From: Mickael [mailto:[EMAIL PROTECTED] 
Sent: November 6, 2003 8:52 PM
To: CF-Talk
Subject: Just Wondering Why

Hello All,

Sorry if this is a novice question.I am trying to learn fusebox and find
my self making smaller templates and and more includes (which I guess is
good I haven't decided yet)

My question is this.Lets say that the value of myvariable is house

So when I do this

cfoutput
#myvariable#
/cfoutput

I get an output of house

But when I do this

cfoutput

cfinclude template=dsp_myvariablepage.cfm (dsp_myvariablepage.cfm's
content is#myvariable# )

/cfoutput

I get #myvariable#instead of house.If include the template and the
content is #myvariable# would it not be in between the two cfoutputs once it
is included?

Sorry if this question is basic, just trying to understand it.

Thanks

Mike

_


_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Just Wondering Why

2003-11-07 Thread Bryan Stevenson
Rickdoesn't that fly in the face of code resuse??If each template is self contained...how do you reuse a query in the file in another file?Perhaps I misunderstood?

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

-
Macromedia Associate Partner
www.macromedia.com
-
Vancouver Island ColdFusion Users Group
Founder  Director
www.cfug-vancouverisland.com
- Original Message - 
From: cfhelp 
To: CF-Talk 
Sent: Friday, November 07, 2003 8:12 AM
Subject: RE: Just Wondering Why

As a practice I try and make each template self contained (You can open it
with the browser by its self).All Queries, Set Params and output all in
one file. Makes troubleshooting easier and reusable code.

Rick

 _

From: Kwang Suh [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 07, 2003 1:17 AM
To: CF-Talk

This behaviour is not specific to fusebox.CF just works this way.
included templates are not automatically parsed.You have to have
cfoutput tags in the included page.

-Original Message-
From: Mickael [mailto:[EMAIL PROTECTED] 
Sent: November 6, 2003 8:52 PM
To: CF-Talk
Subject: Just Wondering Why

Hello All,

Sorry if this is a novice question.I am trying to learn fusebox and find
my self making smaller templates and and more includes (which I guess is
good I haven't decided yet)

My question is this.Lets say that the value of myvariable is house

So when I do this

cfoutput
#myvariable#
/cfoutput

I get an output of house

But when I do this

cfoutput

cfinclude template=dsp_myvariablepage.cfm (dsp_myvariablepage.cfm's
content is#myvariable# )

/cfoutput

I get #myvariable#instead of house.If include the template and the
content is #myvariable# would it not be in between the two cfoutputs once it
is included?

Sorry if this question is basic, just trying to understand it.

Thanks

Mike

 _

 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Just Wondering Why

2003-11-07 Thread Hugo Ahlenius
big self-contained files.

I used to do that. Then I stopped doing that.

The files were getting *VERY* big, and some things were not that easy to
reuse over the application -- and if you start doing includes/tags then it
is not contained in one file anymore. I actually found things harder to
maintain in a lot cases since you have to find your way through the web of
code in one template that did a lot of different things.

I started to gravitate towards something like fusebox 3. I used a
dispatcher (all calls to index.cfm), I split things up in individual
templates. Then I found fusebox 3, and it was a big this is for me. I
could see how things would be easier to maintain, reuse, transpose etc
etc.

But before I got really into fbx 3; big things are happening now -- at
work we are moving to CFMX and it seems like Mach-II is *the* thing to
move to.

/Hugo


-
Hugo AhleniusE-Mail: [EMAIL PROTECTED]
Project Officer Phone:+46 8 230460
UNEP GRID-ArendalFax:+46 8 230441
Stockholm OfficeMobile:+46 733 467111
 WWW: http://www.grida.no
- 



| -Original Message-
| From: cfhelp [mailto:[EMAIL PROTECTED]
| Sent: Friday, November 07, 2003 17:12
| To: CF-Talk
| Subject: RE: Just Wondering Why
|
|
| As a practice I try and make each template self contained
| (You can open it
| with the browser by its self).All Queries, Set Params and
| output all in
| one file. Makes troubleshooting easier and reusable code.
|
|
|
| Rick
|
|
|
|_
|
| From: Kwang Suh [mailto:[EMAIL PROTECTED]
| Sent: Friday, November 07, 2003 1:17 AM
| To: CF-Talk
|
|
|
| This behaviour is not specific to fusebox.CF just works this way.
| included templates are not automatically parsed.You have to have
| cfoutput tags in the included page.
|
| -Original Message-
| From: Mickael [mailto:[EMAIL PROTECTED]
| Sent: November 6, 2003 8:52 PM
| To: CF-Talk
| Subject: Just Wondering Why
|
| Hello All,
|
| Sorry if this is a novice question.I am trying to learn
| fusebox and find
| my self making smaller templates and and more includes (which
| I guess is
| good I haven't decided yet)
|
| My question is this.Lets say that the value of myvariable is house
|
| So when I do this
|
| cfoutput
| #myvariable#
| /cfoutput
|
| I get an output of house
|
| But when I do this
|
| cfoutput
|
| cfinclude template=dsp_myvariablepage.cfm
| (dsp_myvariablepage.cfm's
| content is#myvariable# )
|
| /cfoutput
|
| I get #myvariable#instead of house.If include the template and the
| content is #myvariable# would it not be in between the two
| cfoutputs once it
| is included?
|
| Sorry if this question is basic, just trying to understand it.
|
| Thanks
|
| Mike
|
|_
|
|
|
|
|_
|
|
| 
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Javascript CF question

2003-11-07 Thread Ketan Patel
Hi All,
I have a question related to _javascript_. I have some dynamic articles which
I want to share with other websites. The best way I think is call my page
using _javascript_.
script type=text/_javascript_language=_javascript_1.2
src="">

I know that above code should work if somebody adds that script, but on my
page which is test111.cfm to display the results, what _javascript_ code I
need to add so I can show my dynamic content.

Ketan Patel
G3 Technology Group, LLC
Graphics III Advertising, Inc.
(410)789-7007 or (800)783-1799
It's Not Creative if it doesn't Sell.
http://www.g3group.com http://www.g3group.com


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: what do I need to know about CF 4.5

2003-11-07 Thread Christine Lawson
You'll want to review the CFML Language History that covers what changed with each version: http://www.macromedia.com/support/coldfusion/ts/documents/cfmlhistory.htm http://www.macromedia.com/support/coldfusion/ts/documents/cfmlhistory.htm 

 
Christine

-Original Message-
From: Michael Hodgdon [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 10:15 AM
To: CF-Talk
Subject: what do I need to know about CF 4.5

I have picked up a project and the client does not want to move from 4.5 to
MX.I am used to coding under 5.0 and MX and was wondering some of the know
bugs and differences between these environments.Could anyone give some
general guidelines?

thank you

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Javascript CF question

2003-11-07 Thread John McCosker
If I understand your quest directly,
when they load your JS file you then want the JS file to write to their web
document on the fly.
Since you can't tell the structure of the doc then you want to create a div
with position absolute elements,
position it, then write your data to it and make it visible.

 
do I understand your question correctly?

-Original Message-
From: Ketan Patel [mailto:[EMAIL PROTECTED]
Sent: 07 November 2003 16:34
To: CF-Talk
Subject: _javascript_ CF question

Hi All,
I have a question related to _javascript_. I have some dynamic articles which
I want to share with other websites. The best way I think is call my page
using _javascript_.
script type=text/_javascript_language=_javascript_1.2
src="">

I know that above code should work if somebody adds that script, but on my
page which is test111.cfm to display the results, what _javascript_ code I
need to add so I can show my dynamic content.

Ketan Patel
G3 Technology Group, LLC
Graphics III Advertising, Inc.
(410)789-7007 or (800)783-1799
It's Not Creative if it doesn't Sell.
http://www.g3group.com http://www.g3group.comhttp://www.g3group.com

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re:Just Wondering Why

2003-11-07 Thread Jeremy Brodie
I agree. I've seen too many cases of files that are over 500 lines long, contain 20 or more CFIFs (many nested and renested) that are really hard to maintain. 

I've found it better to create custom tags and CFCs acting as objects and widgets and reuse them. This way if there is a problem with the business logic in one place, all I have to do is make the change in a single place. I'll even place querries and stored proceedure calls in seperate files, inside a seprate folder!

In my mind this is much easier to maintain, especally if my client wants small cahnges toward the end of the development cycle. As a general guidline, I try to aim to have my files shorter than 225 lines.

This is especally important if you work within a team environment with maintenance programmers.

Jeremy Brodie
Intelix
an Edgewater Technology Solutions Company

web: http://www.edgewater.com
phone:(703) 815-2500
nasdaq symbol: EDGE

big self-contained files.

I used to do that. Then I stopped doing that.

The files were getting *VERY* big, and some things were not that easy to
reuse over the application -- and if you start doing includes/tags then it
is not contained in one file anymore. I actually found things harder to
maintain in a lot cases since you have to find your way through the web of
code in one template that did a lot of different things.

I started to gravitate towards something like fusebox 3. I used a
dispatcher (all calls to index.cfm), I split things up in individual
templates. Then I found fusebox 3, and it was a big this is for me. I
could see how things would be easier to maintain, reuse, transpose etc
etc.

But before I got really into fbx 3; big things are happening now -- at
work we are moving to CFMX and it seems like Mach-II is *the* thing to
move to.

/Hugo




-
Hugo AhleniusE-Mail: [EMAIL PROTECTED]
Project Officer Phone:+46 8 230460
UNEP GRID-ArendalFax:+46 8 230441
Stockholm OfficeMobile:+46 733 467111
 WWW: http://www.grida.no
- 






| -Original Message-
| From: cfhelp [mailto:[EMAIL PROTECTED]
| Sent: Friday, November 07, 2003 17:12
| To: CF-Talk
| Subject: RE: Just Wondering Why
|
|
| As a practice I try and make each template self contained
| (You can open it
| with the browser by its self).All Queries, Set Params and
| output all in
| one file. Makes troubleshooting easier and reusable code.
|
|
|
| Rick
|
|
|
|_
|
| From: Kwang Suh [mailto:[EMAIL PROTECTED]
| Sent: Friday, November 07, 2003 1:17 AM
| To: CF-Talk
|
|
|
| This behaviour is not specific to fusebox.CF just works this way.
| included templates are not automatically parsed.You have to have
| cfoutput tags in the included page.
|
| -Original Message-
| From: Mickael [mailto:[EMAIL PROTECTED]
| Sent: November 6, 2003 8:52 PM
| To: CF-Talk
| Subject: Just Wondering Why
|
| Hello All,
|
| Sorry if this is a novice question.I am trying to learn
| fusebox and find
| my self making smaller templates and and more includes (which
| I guess is
| good I haven't decided yet)
|
| My question is this.Lets say that the value of myvariable is house
|
| So when I do this
|
| cfoutput
| #myvariable#
| /cfoutput
|
| I get an output of house
|
| But when I do this
|
| cfoutput
|
| cfinclude template=dsp_myvariablepage.cfm
| (dsp_myvariablepage.cfm's
| content is#myvariable# )
|
| /cfoutput
|
| I get #myvariable#instead of house.If include the template and the
| content is #myvariable# would it not be in between the two
| cfoutputs once it
| is included?
|
| Sorry if this question is basic, just trying to understand it.
|
| Thanks
|
| Mike
|
|_
|
|
|
|
|_
|
|
| 
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: CF-Talk: Digest every 6 hours

2003-11-07 Thread IBC Staff - Shane Kelly
Thanks for your email.

Shane is currently out of the office until the 23rd of November.
If your enquiry requires urgent attention, you may contact[EMAIL PROTECTED]

Regards
IBC Postmaster
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Another cfscript question.

2003-11-07 Thread Che Vilnonis
Hello again.
I'm in the process of converting a lot of my code over to cfscript blocks
and I can't get by this error.

cfscript
// Define error variables list.
ErrorFlags =
CreateAccountFlag,ExistingAccountFlag,EmailFlag,EmailInvalidFlag,PasswordFl
ag,Password2Flag,PasswordLengthFlag,Password2LengthFlag,PasswordNEQFlag,Firs
tNameFlag,FirstNameInvalidFlag,LastNameFlag,LastNameInvalidFlag,AddressFlag,
AddressInvalidFlag,Address2InvalidFlag,CityFlag,CityInvalidFlag,StateFlag,Zi
pFlag,ZipInvalidFlag,PhoneFlag,PhoneInvalidFlag;

// Loop through the list and define all default values.
for(i=1; i LTE listlen(ErrorFlags); i = i + 1)
	if (NOT isDefined(#listgetat(ErrorFlags,i)#)) {listgetat(ErrorFlags,i) =
;}
/cfscript

The error is: Illegal left hand side of assignment near line 7, column 51.
Left hand side cannot be a function call.

If this were a structure it would work. What am I doing wrong???

TIA...Che

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Another cfscript question.

2003-11-07 Thread Thomas Chiverton
On Friday 07 Nov 2003 17:04 pm, Che Vilnonis wrote:
 	if (NOT isDefined(#listgetat(ErrorFlags,i)#)) {listgetat(ErrorFlags,i) =

You can't use listGetAt to set elements in arrays, it's only job is to return 
the contents at a position.

-- 
Tom Chiverton 
Advanced ColdFusion Programmer

Tel: +44(0)1749 834997
email: [EMAIL PROTECTED]
BlueFinger Limited
Underwood Business Park
Wookey Hole Road, WELLS. BA5 1AF
Tel: +44 (0)1749 834900
Fax: +44 (0)1749 834901
web: www.bluefinger.com
Company Reg No: 4209395 Registered Office: 2 Temple Back East, Temple
Quay, BRISTOL. BS1 6EG.
*** This E-mail contains confidential information for the addressee
only. If you are not the intended recipient, please notify us
immediately. You should not use, disclose, distribute or copy this
communication if received in error. No binding contract will result from
this e-mail until such time as a written document is signed on behalf of
the company. BlueFinger Limited cannot accept responsibility for the
completeness or accuracy of this message as it has been transmitted over
public networks.***

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Another cfscript question.

2003-11-07 Thread Craig Dudley
Try the 'setvariable'function.

 
ie..

 
if (NOT isDefined(#listgetat(ErrorFlags,i)#)) {
setvariable(listgetat(ErrorFlags,i),);}

	-Original Message-
	From: Che Vilnonis [mailto:[EMAIL PROTECTED] 
	Sent: 07 November 2003 17:04
	To: CF-Talk
	Subject: Another cfscript question.
	
	
	Hello again.
	I'm in the process of converting a lot of my code over to
cfscript blocks
	and I can't get by this error.
	
	cfscript
	// Define error variables list.
	ErrorFlags =
	
CreateAccountFlag,ExistingAccountFlag,EmailFlag,EmailInvalidFlag,Passwo
rdFl
	
ag,Password2Flag,PasswordLengthFlag,Password2LengthFlag,PasswordNEQFlag,
Firs
	
tNameFlag,FirstNameInvalidFlag,LastNameFlag,LastNameInvalidFlag,AddressF
lag,
	
AddressInvalidFlag,Address2InvalidFlag,CityFlag,CityInvalidFlag,StateFla
g,Zi
	pFlag,ZipInvalidFlag,PhoneFlag,PhoneInvalidFlag;
	
	// Loop through the list and define all default values.
	for(i=1; i LTE listlen(ErrorFlags); i = i + 1)
	if (NOT isDefined(#listgetat(ErrorFlags,i)#))
{listgetat(ErrorFlags,i) =
	;}
	/cfscript
	
	The error is: Illegal left hand side of assignment near line 7,
column 51.
	Left hand side cannot be a function call.
	
	If this were a structure it would work. What am I doing wrong???
	
	TIA...Che
	
_

	
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Another cfscript question.

2003-11-07 Thread Ben Doom
ListGetAt() returns a string, so what you are saying is essentially the 
same as

some string goes here = ;

which is not a legal command.If you had a structure predefined, let's 
call it Errors, you could do somethinglike

Errors[listgetat(errorflags, i)] = ;

--Ben Doom

Che Vilnonis wrote:

 Hello again.
 I'm in the process of converting a lot of my code over to cfscript blocks
 and I can't get by this error.
 
 cfscript
 // Define error variables list.
 ErrorFlags =
 CreateAccountFlag,ExistingAccountFlag,EmailFlag,EmailInvalidFlag,PasswordFl
 ag,Password2Flag,PasswordLengthFlag,Password2LengthFlag,PasswordNEQFlag,Firs
 tNameFlag,FirstNameInvalidFlag,LastNameFlag,LastNameInvalidFlag,AddressFlag,
 AddressInvalidFlag,Address2InvalidFlag,CityFlag,CityInvalidFlag,StateFlag,Zi
 pFlag,ZipInvalidFlag,PhoneFlag,PhoneInvalidFlag;
 
 // Loop through the list and define all default values.
 for(i=1; i LTE listlen(ErrorFlags); i = i + 1)
 if (NOT isDefined(#listgetat(ErrorFlags,i)#)) {listgetat(ErrorFlags,i) =
 ;}
 /cfscript
 
 The error is: Illegal left hand side of assignment near line 7, column 51.
 Left hand side cannot be a function call.
 
 If this were a structure it would work. What am I doing wrong???
 
 TIA...Che
 
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Another cfscript question.

2003-11-07 Thread Che Vilnonis
Thomas, Craig...Thanks!
-Original Message-
From: Craig Dudley [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 12:04 PM
To: CF-Talk
Subject: RE: Another cfscript question.

Try the 'setvariable'function.

ie..

if (NOT isDefined(#listgetat(ErrorFlags,i)#)) {
setvariable(listgetat(ErrorFlags,i),);}

-Original Message-
From: Che Vilnonis [mailto:[EMAIL PROTECTED]
Sent: 07 November 2003 17:04
To: CF-Talk
Subject: Another cfscript question.

Hello again.
I'm in the process of converting a lot of my code over to
cfscript blocks
and I can't get by this error.

cfscript
// Define error variables list.
ErrorFlags =

CreateAccountFlag,ExistingAccountFlag,EmailFlag,EmailInvalidFlag,Passwo
rdFl

ag,Password2Flag,PasswordLengthFlag,Password2LengthFlag,PasswordNEQFlag,
Firs

tNameFlag,FirstNameInvalidFlag,LastNameFlag,LastNameInvalidFlag,AddressF
lag,

AddressInvalidFlag,Address2InvalidFlag,CityFlag,CityInvalidFlag,StateFla
g,Zi
pFlag,ZipInvalidFlag,PhoneFlag,PhoneInvalidFlag;

// Loop through the list and define all default values.
for(i=1; i LTE listlen(ErrorFlags); i = i + 1)
if (NOT isDefined(#listgetat(ErrorFlags,i)#))
{listgetat(ErrorFlags,i) =
;}
/cfscript

The error is: Illegal left hand side of assignment near line 7,
column 51.
Left hand side cannot be a function call.

If this were a structure it would work. What am I doing wrong???

TIA...Che

 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




CF5, ISA server, debugging question

2003-11-07 Thread Stephen Hait
I have a client who recently installed a MS ISA server for firewall 
purposes. This seems to change how IIS recognizes requests 
from IP addresses - now all requests are reported in the web 
server logs as 192.168.0.1. Likewise, cgi.remote_host now 
reports this IP regardless of where on the Internet a request 
comes from. 

Is there any way now to be able to specify debugging output be 
presented without having every visitor see this output? In CF 
Administrator it looks like the only way to direct debug output is 
by specifying IP addresses - in this case, only 192.168.0.1 will 
cause debug info to show in which case everyone sees it.

Or, is there a more flexible mechanism for doing this that 
upgrading to CFMX would provide?

Regards,
Stephen
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Javascript CF question

2003-11-07 Thread Ketan Patel
script type=text/_javascript_language=_javascript_1.2
src="">

test111.js works but no CF executed

!-- Begin

 document.write('cfoutput#now()#/cfoutput');

// End --
 I get just

script type=text/_javascript_language=_javascript_1.2
src="">

test111.cfm does not works

!-- Begin

 document.write('cfoutput#now()#/cfoutput');

// End --

Any Idea why it does not understand CF How can I get it working.

Ketan Patel
G3 Technology Group, LLC
Graphics III Advertising, Inc.
(410)789-7007 or (800)783-1799
It's Not Creative if it doesn't Sell.
http://www.g3group.com http://www.g3group.com

-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 11:39 AM
To: CF-Talk
Subject: RE: _javascript_ CF question

If I understand your quest directly,
when they load your JS file you then want the JS file to write to their
web
document on the fly.
Since you can't tell the structure of the doc then you want to create a
div
with position absolute elements,
position it, then write your data to it and make it visible.

do I understand your question correctly?

-Original Message-
From: Ketan Patel [mailto:[EMAIL PROTECTED]
Sent: 07 November 2003 16:34
To: CF-Talk
Subject: _javascript_ CF question

Hi All,
I have a question related to _javascript_. I have some dynamic articles
which
I want to share with other websites. The best way I think is call my page
using _javascript_.
script type=text/_javascript_language=_javascript_1.2
src="">

I know that above code should work if somebody adds that script, but on my
page which is test111.cfm to display the results, what _javascript_ code I
need to add so I can show my dynamic content.

Ketan Patel
G3 Technology Group, LLC
Graphics III Advertising, Inc.
(410)789-7007 or (800)783-1799
It's Not Creative if it doesn't Sell.
http://www.g3group.com http://www.g3group.comhttp://www.g3group.com

 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




OT: ArgoSoft Script

2003-11-07 Thread cfhelp
Anyone here have a CF script that creates MailBag domains in ArgoSoft's mail
server using CFHTTP or other method?



Rick


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Sports feeds web services?

2003-11-07 Thread James Johnson
Hello,

Does anyone know, or have a resource for, a web service to provide stats for
sports? I'm looking for box scores, player stats, etc. I have found ESPN's
SportsTicker, but it is pretty pricey.

Thanks,
James Johnson

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Javascript CF question

2003-11-07 Thread Bert Dawson
What do you see if you browse to http://www.mysite.com/test111.cfm and view the source?
Is it all valid js? 
e.g. example becomes:
document.write('{ts '2003-11-07 18:15:34'}');
and js ain't gonna like all those apostrophes...

Bert

 script type=text/_javascript_language=_javascript_1.2
 src="">

 test111.cfm does not works
 
 !-- Begin
 
 document.write('cfoutput#now()#/cfoutput');
 
 // End --

		

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RSS displayed in CF

2003-11-07 Thread Wurst, Keith D.
hey everyone. does anyone have a good example of how to display a RSS file
on a CF based website (not mx)? thanks.

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Virus scanner for CF upload?

2003-11-07 Thread DeMarco, Alex
Is there any tool out there to do virus scanner when a file is uploaded
via CFMX?

- Alex


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Javascript CF question

2003-11-07 Thread Charlie Griefer
cfoutput
document.write('#JSStringFormat(now())#');
/cfoutput

http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/funct148.htm

hth,
Charlie

- Original Message - 
From: Bert Dawson 
To: CF-Talk 
Sent: Friday, November 07, 2003 11:19 AM
Subject: RE: _javascript_ CF question

What do you see if you browse to http://www.mysite.com/test111.cfm and view the source?
Is it all valid js? 
e.g. example becomes:
document.write('{ts '2003-11-07 18:15:34'}');
and js ain't gonna like all those apostrophes...

Bert

 script type=text/_javascript_language=_javascript_1.2
 src="">

 test111.cfm does not works
 
 !-- Begin
 
 document.write('cfoutput#now()#/cfoutput');
 
 // End --


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Javascript CF question

2003-11-07 Thread Ketan Patel
Hi Charlie,
My caller page has following code

Test110.cfm code
script type=text/_javascript_language=_javascript_1.2
src="">
/script

and Test111.cfm code is
cfoutput
document.write('#JSStringFormat(now())#');
/cfoutput

nothing comes blank. Now my question is can I call a extrnal .cfm page using
_javascript_ when I rename to .js and throw in bunch of text it works, I have
seen php scripts doing this.

Ketan Patel
G3 Technology Group, LLC
Graphics III Advertising, Inc.
(410)789-7007 or (800)783-1799
It's Not Creative if it doesn't Sell.
http://www.g3group.com http://www.g3group.com

-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 1:34 PM
To: CF-Talk
Subject: Re: _javascript_ CF question

cfoutput
 document.write('#JSStringFormat(now())#');
/cfoutput

http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/funct148.htm

hth,
Charlie

 - Original Message -
 From: Bert Dawson
 To: CF-Talk
 Sent: Friday, November 07, 2003 11:19 AM
 Subject: RE: _javascript_ CF question

 What do you see if you browse to http://www.mysite.com/test111.cfm and
view the source?
 Is it all valid js?
 e.g. example becomes:
 document.write('{ts '2003-11-07 18:15:34'}');
 and js ain't gonna like all those apostrophes...

 Bert

  script type=text/_javascript_language=_javascript_1.2
  src="">

  test111.cfm does not works
 
  !-- Begin
 
  document.write('cfoutput#now()#/cfoutput');
 
  // End --


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: cfscript question...

2003-11-07 Thread Calvin Ward
My .02 agrees with your .02

- Calvin
- Original Message - 
From: Mark A. Kruger - CFG 
To: CF-Talk 
Sent: Friday, November 07, 2003 9:43 AM
Subject: RE: cfscript question...

I like this better:

IF(StructKeyExists(form,Listgeat(fieldlist,i)) {


}

One of the reasons I like using Cfscript is to get rid of pound signs and quotes- seems more readable. Just my 02.

-mark

 -Original Message-
 From: Che Vilnonis [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 06, 2003 3:46 PM
 To: CF-Talk
 Subject: RE: cfscript question...

 Using CF5. The error is...

 Parameter 1 of function IsDefined which is now
 FORM[listgetat(FieldList,i)] must be a syntactically valid variable name.

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 4:31 PM
To: CF-Talk
Subject: RE: cfscript question...

don't you need {}'s around theFORM[listgetat(FieldList,i)] = ;

or if not, what error are you getting?

...tony

tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337

-Original Message-
From: Che Vilnonis [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 4:26 PM
To: CF-Talk
Subject: cfscript question...

What am I doing wrong here?

cfscript
// Intialize List
FieldList =

 CustEmail,CustPassword,CustPassword2,BillFirstName,BillLastName,BillAddress
,BillAddress2,BillCity,BillState,BillZip,BillPhone;

// Loop thru list and define all FORM variables for(i=1; i LTE
listlen(FieldList); i = i + 1)
if (NOT isDefined(FORM[listgetat(FieldList,i)]))
FORM[listgetat(FieldList,i)] = ;
/cfscript

Che Vilnonis
Application Developer
Advertising Systems Incorporated
8470C Remington Avenue
Pennsauken, NJ 08110
p: 856.488.2211
f: 856.488.1990
www.asitv.com


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: cfscript question...

2003-11-07 Thread Kenneth Ketsdever
Does that make it .0004 cents?

-Original Message-
From: Calvin Ward [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 10:36 AM
To: CF-Talk
Subject: Re: cfscript question...

My .02 agrees with your .02

- Calvin
- Original Message - 
From: Mark A. Kruger - CFG 
To: CF-Talk 
Sent: Friday, November 07, 2003 9:43 AM
Subject: RE: cfscript question...

I like this better:

IF(StructKeyExists(form,Listgeat(fieldlist,i)) {


}

One of the reasons I like using Cfscript is to get rid of pound signs and
quotes- seems more readable. Just my 02.

-mark

 -Original Message-
 From: Che Vilnonis [mailto:[EMAIL PROTECTED]
 Sent: Thursday, November 06, 2003 3:46 PM
 To: CF-Talk
 Subject: RE: cfscript question...

 Using CF5. The error is...

 Parameter 1 of function IsDefined which is now
 FORM[listgetat(FieldList,i)] must be a syntactically valid variable
name.

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 4:31 PM
To: CF-Talk
Subject: RE: cfscript question...

don't you need {}'s around theFORM[listgetat(FieldList,i)] = ;

or if not, what error are you getting?

...tony

tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337

-Original Message-
From: Che Vilnonis [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 06, 2003 4:26 PM
To: CF-Talk
Subject: cfscript question...

What am I doing wrong here?

cfscript
// Intialize List
FieldList =

CustEmail,CustPassword,CustPassword2,BillFirstName,BillLastName,BillAddress
,BillAddress2,BillCity,BillState,BillZip,BillPhone;

// Loop thru list and define all FORM variables for(i=1; i LTE
listlen(FieldList); i = i + 1)
if (NOT isDefined(FORM[listgetat(FieldList,i)]))
FORM[listgetat(FieldList,i)] = ;
/cfscript

Che Vilnonis
Application Developer
Advertising Systems Incorporated
8470C Remington Avenue
Pennsauken, NJ 08110
p: 856.488.2211
f: 856.488.1990
www.asitv.com

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Javascript CF question

2003-11-07 Thread Calvin Ward
Would there be a concern with caching using this option?

- Calvin
- Original Message - 
From: Ketan Patel 
To: CF-Talk 
Sent: Friday, November 07, 2003 11:34 AM
Subject: _javascript_ CF question

Hi All,
I have a question related to _javascript_. I have some dynamic articles which
I want to share with other websites. The best way I think is call my page
using _javascript_.
script type=text/_javascript_language=_javascript_1.2
src="">

I know that above code should work if somebody adds that script, but on my
page which is test111.cfm to display the results, what _javascript_ code I
need to add so I can show my dynamic content.

Ketan Patel
G3 Technology Group, LLC
Graphics III Advertising, Inc.
(410)789-7007 or (800)783-1799
It's Not Creative if it doesn't Sell.
http://www.g3group.com http://www.g3group.com


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Javascript CF question

2003-11-07 Thread Charlie Griefer
I'm not sure why you get a blank page.

script
 cfoutput
document.write('#JSStringFormat(now())#');
 /cfoutput
/script

writes a timestamp to the page for me.

as far as including CF code in a .js file..yes, you should be able to include a line of code like:
script src="" type=text/_javascript_/script

and if test.cfm has the following code:
cfoutput
 document.write('#JSStringFormat(now())#');
/cfoutput

you should get the same timestamp written to the calling page.

did i understand your question(s) right?

Charlie

- Original Message - 
From: Ketan Patel 
To: CF-Talk 
Sent: Friday, November 07, 2003 11:48 AM
Subject: RE: _javascript_ CF question

Hi Charlie,
My caller page has following code

Test110.cfm code
script type=text/_javascript_language=_javascript_1.2
src="">
/script

and Test111.cfm code is
cfoutput
 document.write('#JSStringFormat(now())#');
/cfoutput

nothing comes blank. Now my question is can I call a extrnal .cfm page using
_javascript_ when I rename to .js and throw in bunch of text it works, I have
seen php scripts doing this.

Ketan Patel
G3 Technology Group, LLC
Graphics III Advertising, Inc.
(410)789-7007 or (800)783-1799
It's Not Creative if it doesn't Sell.
http://www.g3group.com http://www.g3group.com

 -Original Message-
 From: Charlie Griefer [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 1:34 PM
 To: CF-Talk
 Subject: Re: _javascript_ CF question

 cfoutput
document.write('#JSStringFormat(now())#');
 /cfoutput

 http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/funct148.htm

 hth,
 Charlie

- Original Message -
From: Bert Dawson
To: CF-Talk
Sent: Friday, November 07, 2003 11:19 AM
Subject: RE: _javascript_ CF question

What do you see if you browse to http://www.mysite.com/test111.cfm and
view the source?
Is it all valid js?
e.g. example becomes:
document.write('{ts '2003-11-07 18:15:34'}');
and js ain't gonna like all those apostrophes...

Bert

 script type=text/_javascript_language=_javascript_1.2
 src="">

 test111.cfm does not works

 !-- Begin

 document.write('cfoutput#now()#/cfoutput');

 // End --


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Just Wondering Why

2003-11-07 Thread Mark A. Kruger - CFG
I'm with you guys. I not only separate into separate files, but I make a very good effort at separating Logic blocks,
queries, thematic elements (styles etc) and display code. In addition, in the CFMX world, CFC's allow for an even
greater level of abstraction because they can serve multiple purposes (html, flash, web service). This works better for
the division of labor problems that plague larger projects as well.

One note though - I have recently noticed that my CFC's can grow quite large - because a single CFC now stands in for a
bunch of qry_* files that were included at run time.

-Mark

-Original Message-
From: Jeremy Brodie [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 9:43 AM
To: CF-Talk
Subject: Re:Just Wondering Why

I agree. I've seen too many cases of files that are over 500 lines long, contain 20 or more CFIFs (many nested and
renested) that are really hard to maintain.

I've found it better to create custom tags and CFCs acting as objects and widgets and reuse them. This way if there is
a problem with the business logic in one place, all I have to do is make the change in a single place. I'll even place
querries and stored proceedure calls in seperate files, inside a seprate folder!

In my mind this is much easier to maintain, especally if my client wants small cahnges toward the end of the
development cycle. As a general guidline, I try to aim to have my files shorter than 225 lines.

This is especally important if you work within a team environment with maintenance programmers.

Jeremy Brodie
Intelix
an Edgewater Technology Solutions Company

web: http://www.edgewater.com
phone:(703) 815-2500
nasdaq symbol: EDGE

big self-contained files.

I used to do that. Then I stopped doing that.

The files were getting *VERY* big, and some things were not that easy to
reuse over the application -- and if you start doing includes/tags then it
is not contained in one file anymore. I actually found things harder to
maintain in a lot cases since you have to find your way through the web of
code in one template that did a lot of different things.

I started to gravitate towards something like fusebox 3. I used a
dispatcher (all calls to index.cfm), I split things up in individual
templates. Then I found fusebox 3, and it was a big this is for me. I
could see how things would be easier to maintain, reuse, transpose etc
etc.

But before I got really into fbx 3; big things are happening now -- at
work we are moving to CFMX and it seems like Mach-II is *the* thing to
move to.

/Hugo




-
Hugo AhleniusE-Mail: [EMAIL PROTECTED]
Project Officer Phone:+46 8 230460
UNEP GRID-ArendalFax:+46 8 230441
Stockholm OfficeMobile:+46 733 467111
 WWW: http://www.grida.no
-






| -Original Message-
| From: cfhelp [mailto:[EMAIL PROTECTED]
| Sent: Friday, November 07, 2003 17:12
| To: CF-Talk
| Subject: RE: Just Wondering Why
|
|
| As a practice I try and make each template self contained
| (You can open it
| with the browser by its self).All Queries, Set Params and
| output all in
| one file. Makes troubleshooting easier and reusable code.
|
|
|
| Rick
|
|
|
|_
|
| From: Kwang Suh [mailto:[EMAIL PROTECTED]
| Sent: Friday, November 07, 2003 1:17 AM
| To: CF-Talk
|
|
|
| This behaviour is not specific to fusebox.CF just works this way.
| included templates are not automatically parsed.You have to have
| cfoutput tags in the included page.
|
| -Original Message-
| From: Mickael [mailto:[EMAIL PROTECTED]
| Sent: November 6, 2003 8:52 PM
| To: CF-Talk
| Subject: Just Wondering Why
|
| Hello All,
|
| Sorry if this is a novice question.I am trying to learn
| fusebox and find
| my self making smaller templates and and more includes (which
| I guess is
| good I haven't decided yet)
|
| My question is this.Lets say that the value of myvariable is house
|
| So when I do this
|
| cfoutput
| #myvariable#
| /cfoutput
|
| I get an output of house
|
| But when I do this
|
| cfoutput
|
| cfinclude template=dsp_myvariablepage.cfm
| (dsp_myvariablepage.cfm's
| content is#myvariable# )
|
| /cfoutput
|
| I get #myvariable#instead of house.If include the template and the
| content is #myvariable# would it not be in between the two
| cfoutputs once it
| is included?
|
| Sorry if this question is basic, just trying to understand it.
|
| Thanks
|
| Mike
|
|_
|
|
|
|
|_
|
|
|

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Sports feeds web services?

2003-11-07 Thread Eric Creese
try http://www.newsclicker.com/ but the last time I checked there was no stats related feeds.

 
I also use http://www.allsports.com

-Original Message-
From: James Johnson [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 12:08 PM
To: CF-Talk
Subject: Sports feeds web services?

Hello,

Does anyone know, or have a resource for, a web service to provide stats for
sports? I'm looking for box scores, player stats, etc. I have found ESPN's
SportsTicker, but it is pretty pricey.

Thanks,
James Johnson

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: CF5, ISA server, debugging question

2003-11-07 Thread Dave Watts
 I have a client who recently installed a MS ISA server for 
 firewall purposes. This seems to change how IIS recognizes 
 requests from IP addresses - now all requests are reported 
 in the web server logs as 192.168.0.1. Likewise, cgi.remote_host 
 now reports this IP regardless of where on the Internet a 
 request comes from. 
 
 Is there any way now to be able to specify debugging output be 
 presented without having every visitor see this output? In CF 
 Administrator it looks like the only way to direct debug output 
 is by specifying IP addresses - in this case, only 192.168.0.1 
 will cause debug info to show in which case everyone sees it.

I can think of a couple of possible solutions. One would be to simply enable
debugging for that address in the CF Administrator, then use code to control
the display of debugging output. For example, you could have something like
this in your Application.cfm file for a site on the server:

cfsetting showdebugoutput=false

cfif ShowMeDebugOutput
	cfsetting showdebugoutput=true
/cfif

You could control this by tying it to a login, or to a URL parameter, or
something along those lines.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RegEx Question...

2003-11-07 Thread Che Vilnonis
Real simple questionfolks...I use something like this to flag invalid
zipcodes:

cfscript
	if (NOT (REFind('^[[:digit:]]{5}(( |-)?[[:digit:]]{4})?$',FORM.ZIP) NEQ 0))
{}
/cfscript

What RegEx would work to validate a US phone number in a 1-888-555-1212
format?

Thank again...Che

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: RSS displayed in CF

2003-11-07 Thread Bryan F. Hogan
http://www.cfm-applications.com/blogman/articles/rss2query.shtml

-Original Message-
From: Wurst, Keith D. [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 07, 2003 1:31 PM
To: CF-Talk
Subject: RSS displayed in CF

hey everyone. does anyone have a good example of how to display a RSS
file on a CF based website (not mx)? thanks.


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: RegEx Question...

2003-11-07 Thread Ben Doom
Assuming you are requiring the 1- and the area code:

1-[0-9]{3}-[0-9]{3}-[0-9]{4}

Something more flexible might be

((1-)?[0-9]{3}-)?[0-9]{3}-[0-9]{4}

HTH.

--Ben Doom

Che Vilnonis wrote:

 Real simple questionfolks...I use something like this to flag invalid
 zipcodes:
 
 cfscript
 if (NOT (REFind('^[[:digit:]]{5}(( |-)?[[:digit:]]{4})?$',FORM.ZIP) NEQ 0))
 {}
 /cfscript
 
 What RegEx would work to validate a US phone number in a 1-888-555-1212
 format?
 
 Thank again...Che
 
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: RegEx Question...

2003-11-07 Thread Che Vilnonis
Thanks Ben.
-Original Message-
From: Ben Doom [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 2:42 PM
To: CF-Talk
Subject: Re: RegEx Question...

Assuming you are requiring the 1- and the area code:

1-[0-9]{3}-[0-9]{3}-[0-9]{4}

Something more flexible might be

((1-)?[0-9]{3}-)?[0-9]{3}-[0-9]{4}

HTH.

--Ben Doom

Che Vilnonis wrote:

 Real simple questionfolks...I use something like this to flag invalid
 zipcodes:

 cfscript
 if (NOT (REFind('^[[:digit:]]{5}(( |-)?[[:digit:]]{4})?$',FORM.ZIP) NEQ
0))
 {}
 /cfscript

 What RegEx would work to validate a US phone number in a 1-888-555-1212
 format?

 Thank again...Che


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Distributed and Non-Distributed Mode on same box?

2003-11-07 Thread Mike Brunt
I need some opinions/points on this.We have a client running both distributed and non-distributed mode on the same CF50 Server, Windows 2k against IIS.Do you think this is a bad idea?

Kind Regards - Mike Brunt

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Distributed and Non-Distributed Mode on same box?

2003-11-07 Thread Dave Watts
 I need some opinions/points on this. We have a client 
 running both distributed and non-distributed mode on the 
 same CF50 Server, Windows 2k against IIS. Do you think 
 this is a bad idea?

Why are they doing this? It sounds bad to me, in the sense that I don't see
any point to it.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Debug output order

2003-11-07 Thread jlangevin
Hi folks,

I am running CF5 on Win2k and I am trying to debug something in AbleCommerce
(hold your groans).

I have set all debug info to be dumped to the screen in cf administrator.I
would like to see the order that templates are getting processed.However, the
template execution list is in alphabetical order.Is there a way to change this
so that it will list them in the order that they are processed?

Thanks in advance for any suggestions.

--Jeff
_
Jeff LangevinAppalachian Mountain Club
MIS Department5 Joy Street, Boston,
Massachusetts 02108

Don't judge each day by the harvest you reap, but by the seeds you plant.
--Robert Louis Stevenson
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: RE: Distributed and Non-Distributed Mode on same box?

2003-11-07 Thread Mike Brunt
I agree with you Dave.From what I understand they see this as a resource saving issue.We are trying to dissuade them from this and I am trying to find objective reasons for that.

Kind Regards - Mike Brunt
Original Message ---
 I need some opinions/points on this. We have a client 
 running both distributed and non-distributed mode on the 
 same CF50 Server, Windows 2k against IIS. Do you think 
 this is a bad idea?

Why are they doing this? It sounds bad to me, in the sense that I don't see
any point to it.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




ot: please reply off list EXCHANGE 2003 quick question

2003-11-07 Thread Tony Weeg
if you have any experience with exchange server 2003
and can give me a pointer real quick please reply off list...thanks!

...tony

tony weeg
senior web applications architect
navtrak, inc.
www.navtrak.net
[EMAIL PROTECTED]
410.548.2337

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




How to count sessions

2003-11-07 Thread Eric Creese
How can you count the number of active session are opened. For instance I have a membership site and I want to get a count of members who have logged in and have an open session.

E
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: RE: Distributed and Non-Distributed Mode on same box?

2003-11-07 Thread Dave Watts
 I agree with you Dave.From what I understand they see this 
 as a resource saving issue.We are trying to dissuade them 
 from this and I am trying to find objective reasons for that.

What resources are they trying to save? I just don't get it.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: RE: RE: Distributed and Non-Distributed Mode on same box?

2003-11-07 Thread Mike Brunt
The cost of extra boxes (they're clustered), server licences and ongoing maintenance costs.

Kind Regards - Mike Brunt

Original Message ---
 I agree with you Dave.From what I understand they see this 
 as a resource saving issue.We are trying to dissuade them 
 from this and I am trying to find objective reasons for that.

What resources are they trying to save? I just don't get it.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: RE: RE: Distributed and Non-Distributed Mode on same box?

2003-11-07 Thread Dave Watts
 The cost of extra boxes (they're clustered), server licences 
 and ongoing maintenance costs.

I still don't get it. How many boxes do they have? Are they running CF on
all of these boxes already anyway?

If I have two boxes, I could configure them many different ways:

- CF and IIS installed locally on each, and the two servers are clustered,
- CF and IIS installed locally on each, and the two servers are not
clustered, 
- CF installed on both using distributed mode, and IIS on the front one
only

How do they have it set up?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: How to count sessions

2003-11-07 Thread brob
I dont think there's a server variable that counts the number of unique sessions available.You can find out this way thoughFirst yo have an application variable like application.counter, and then everytime a member logs in you increment that counter by 1.

Be sure to check for things like if they are already logged in and are just signing in again, to not increment the counter.You can also avoid this problem by writing code on the login page to forward them to their member page if their logging session variable is TRUE.That way they dont have to put in their username/password twice
- Original Message - 
From: Eric Creese 
To: CF-Talk 
Sent: Friday, November 07, 2003 2:22 PM
Subject: How to count sessions

How can you count the number of active session are opened. For instance I have a membership site and I want to get a count of members who have logged in and have an open session.

E

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: RE: RE: RE: Distributed and Non-Distributed Mode on same box?

2003-11-07 Thread Mike Brunt
Two CF Server and IIS on the same boxes clustered behind a hardware load-balancer (non distr).Then IIS on a seperate box running CF on that in distributed mode against the cluster above.That is as I understand it.

Original Message ---
 The cost of extra boxes (they're clustered), server licences 
 and ongoing maintenance costs.

I still don't get it. How many boxes do they have? Are they running CF on
all of these boxes already anyway?

If I have two boxes, I could configure them many different ways:

- CF and IIS installed locally on each, and the two servers are clustered,
- CF and IIS installed locally on each, and the two servers are not
clustered, 
- CF installed on both using distributed mode, and IIS on the front one
only

How do they have it set up?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to count sessions

2003-11-07 Thread Douglas.Knudsen
actually there is...one way in CFMX is this quick stuff

 
cfapplication name=sessionLister sessionManagement=yes

 
cfset tracker = createObject(java, coldfusion.runtime.SessionTracker)
cfset sessions = tracker.getSessionCollection(myappname)

 
cfdump var=#sessions#

 
Ray Camden has some other code for this...a flash app even...out on his blog under http://www.camdenfamily.com/morpheus/blog/

 
Doug

-Original Message-
From: brob [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:56 PM
To: CF-Talk
Subject: Re: How to count sessions

I dont think there's a server variable that counts the number of unique sessions available.You can find out this way thoughFirst yo have an application variable like application.counter, and then everytime a member logs in you increment that counter by 1.

Be sure to check for things like if they are already logged in and are just signing in again, to not increment the counter.You can also avoid this problem by writing code on the login page to forward them to their member page if their logging session variable is TRUE.That way they dont have to put in their username/password twice
- Original Message - 
From: Eric Creese 
To: CF-Talk 
Sent: Friday, November 07, 2003 2:22 PM
Subject: How to count sessions

How can you count the number of active session are opened. For instance I have a membership site and I want to get a count of members who have logged in and have an open session.

E

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to count sessions

2003-11-07 Thread Raymond Camden
Just an FYI, my way of doing it was manually. The idea for the code
below came from Samuel Neff and his blog, and I now use his code.
(Although CFLIB still uses a manual form.)


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: How to count sessions

2003-11-07 Thread brob
is there an equivalent for CF 5? :)

thanks!
- Original Message - 
From: [EMAIL PROTECTED] 
To: CF-Talk 
Sent: Friday, November 07, 2003 2:58 PM
Subject: RE: How to count sessions

actually there is...one way in CFMX is this quick stuff

cfapplication name=sessionLister sessionManagement=yes

cfset tracker = createObject(java, coldfusion.runtime.SessionTracker)
cfset sessions = tracker.getSessionCollection(myappname)

cfdump var=#sessions#

Ray Camden has some other code for this...a flash app even...out on his blog under http://www.camdenfamily.com/morpheus/blog/

Doug

-Original Message-
From: brob [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:56 PM
To: CF-Talk
Subject: Re: How to count sessions

I dont think there's a server variable that counts the number of unique sessions available.You can find out this way thoughFirst yo have an application variable like application.counter, and then everytime a member logs in you increment that counter by 1.

Be sure to check for things like if they are already logged in and are just signing in again, to not increment the counter.You can also avoid this problem by writing code on the login page to forward them to their member page if their logging session variable is TRUE.That way they dont have to put in their username/password twice
 - Original Message - 
 From: Eric Creese 
 To: CF-Talk 
 Sent: Friday, November 07, 2003 2:22 PM
 Subject: How to count sessions

 How can you count the number of active session are opened. For instance I have a membership site and I want to get a count of members who have logged in and have an open session.

 E

 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to count sessions

2003-11-07 Thread Eric Creese
sounds interesting, I will give it a try.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 2:58 PM
To: CF-Talk
Subject: RE: How to count sessions

actually there is...one way in CFMX is this quick stuff

cfapplication name=sessionLister sessionManagement=yes

cfset tracker = createObject(java, coldfusion.runtime.SessionTracker)
cfset sessions = tracker.getSessionCollection(myappname)

cfdump var=#sessions#

Ray Camden has some other code for this...a flash app even...out on his blog under http://www.camdenfamily.com/morpheus/blog/

Doug

-Original Message-
From: brob [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:56 PM
To: CF-Talk
Subject: Re: How to count sessions

I dont think there's a server variable that counts the number of unique sessions available.You can find out this way thoughFirst yo have an application variable like application.counter, and then everytime a member logs in you increment that counter by 1.

Be sure to check for things like if they are already logged in and are just signing in again, to not increment the counter.You can also avoid this problem by writing code on the login page to forward them to their member page if their logging session variable is TRUE.That way they dont have to put in their username/password twice
- Original Message - 
From: Eric Creese 
To: CF-Talk 
Sent: Friday, November 07, 2003 2:22 PM
Subject: How to count sessions

How can you count the number of active session are opened. For instance I have a membership site and I want to get a count of members who have logged in and have an open session.

E

_

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Debug output order

2003-11-07 Thread Mark A. Kruger - CFG
Jeff,

There's not a way in CF 5 - in CFMX there is an open template - and they actually ARE in order by default.What version
of ACB are you using?

-Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 2:22 PM
To: CF-Talk
Subject: Debug output order

Hi folks,

I am running CF5 on Win2k and I am trying to debug something in AbleCommerce
(hold your groans).

I have set all debug info to be dumped to the screen in cf administrator.I
would like to see the order that templates are getting processed.However, the
template execution list is in alphabetical order.Is there a way to change this
so that it will list them in the order that they are processed?

Thanks in advance for any suggestions.

--Jeff
_
Jeff LangevinAppalachian Mountain Club
MIS Department5 Joy Street, Boston,
Massachusetts 02108

Don't judge each day by the harvest you reap, but by the seeds you plant.
--Robert Louis Stevenson

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to count sessions

2003-11-07 Thread Mark A. Kruger - CFG
wonderful... nice trick - very helpful.

-Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 2:58 PM
To: CF-Talk
Subject: RE: How to count sessions

actually there is...one way in CFMX is this quick stuff

cfapplication name=sessionLister sessionManagement=yes

cfset tracker = createObject(java, coldfusion.runtime.SessionTracker)
cfset sessions = tracker.getSessionCollection(myappname)

cfdump var=#sessions#

Ray Camden has some other code for this...a flash app even...out on his blog under
http://www.camdenfamily.com/morpheus/blog/

Doug

-Original Message-
From: brob [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:56 PM
To: CF-Talk
Subject: Re: How to count sessions

I dont think there's a server variable that counts the number of unique sessions available.You can find out this way
thoughFirst yo have an application variable like application.counter, and then everytime a member logs in you
increment that counter by 1.

Be sure to check for things like if they are already logged in and are just signing in again, to not increment the
counter.You can also avoid this problem by writing code on the login page to forward them to their member page if
their logging session variable is TRUE.That way they dont have to put in their username/password twice
 - Original Message -
 From: Eric Creese
 To: CF-Talk
 Sent: Friday, November 07, 2003 2:22 PM
 Subject: How to count sessions

 How can you count the number of active session are opened. For instance I have a membership site and I want to get a
count of members who have logged in and have an open session.

 E

 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to count sessions

2003-11-07 Thread Douglas.Knudsen
ah yes..the proper credit due...I couldn't recall from whence it came...Kudos go to Samuel

 
(I'm assuming by 'below' you meant the code I posted on the sessiontracker classgun shy about email history?:))

 
Doug

-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 4:01 PM
To: CF-Talk
Subject: RE: How to count sessions

Just an FYI, my way of doing it was manually. The idea for the code
below came from Samuel Neff and his blog, and I now use his code.
(Although CFLIB still uses a manual form.)

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Debug output order

2003-11-07 Thread DURETTE, STEVEN J (AIT)
Mark,

 
I beg to differ.

 
I'm using CFMX 6.1

 
For a page I am viewing they are in this order:
1) Application.cfm
2) global.cfm
3) varload.cfm
4) CategoryDefine.cfm

 
but the order in the debug output is:
1) Application.cfm
2) CategoryDefine.cfm
3) global.cfm
4) varload.cfm

 
Steve

-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 4:16 PM
To: CF-Talk
Subject: RE: Debug output order

Jeff,

There's not a way in CF 5 - in CFMX there is an open template - and they
actually ARE in order by default.What version
of ACB are you using?

-Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 2:22 PM
To: CF-Talk
Subject: Debug output order

Hi folks,

I am running CF5 on Win2k and I am trying to debug something in
AbleCommerce
(hold your groans).

I have set all debug info to be dumped to the screen in cf administrator.
I
would like to see the order that templates are getting processed.
However, the
template execution list is in alphabetical order.Is there a way to
change this
so that it will list them in the order that they are processed?

Thanks in advance for any suggestions.

--Jeff
_
Jeff Langevin
Appalachian Mountain Club
MIS Department5 Joy Street, Boston,
Massachusetts 02108

Don't judge each day by the harvest you reap, but by the seeds you plant.
--Robert Louis Stevenson

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to count sessions

2003-11-07 Thread Eric Creese
where should I put this code?

-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:18 PM
To: CF-Talk
Subject: RE: How to count sessions

wonderful... nice trick - very helpful.

-Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 2:58 PM
To: CF-Talk
Subject: RE: How to count sessions

actually there is...one way in CFMX is this quick stuff

cfapplication name=sessionLister sessionManagement=yes

cfset tracker = createObject(java, coldfusion.runtime.SessionTracker)
cfset sessions = tracker.getSessionCollection(myappname)

cfdump var=#sessions#

Ray Camden has some other code for this...a flash app even...out on his blog under
http://www.camdenfamily.com/morpheus/blog/

Doug

-Original Message-
From: brob [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:56 PM
To: CF-Talk
Subject: Re: How to count sessions

I dont think there's a server variable that counts the number of unique sessions available.You can find out this way
thoughFirst yo have an application variable like application.counter, and then everytime a member logs in you
increment that counter by 1.

Be sure to check for things like if they are already logged in and are just signing in again, to not increment the
counter.You can also avoid this problem by writing code on the login page to forward them to their member page if
their logging session variable is TRUE.That way they dont have to put in their username/password twice
 - Original Message -
 From: Eric Creese
 To: CF-Talk
 Sent: Friday, November 07, 2003 2:22 PM
 Subject: How to count sessions

 How can you count the number of active session are opened. For instance I have a membership site and I want to get a
count of members who have logged in and have an open session.

 E

 _

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to count sessions

2003-11-07 Thread Jim Davis
I personally don't use the session scope and keep all session data in
the application scope.This allows you to do a LOT of stuff with the
logged in users but forces you to manage session timeouts on your own:
however the big win is that you can decide what to do on session timeout
(I store all the pages visited, resolution information, duration, etc in
a home-grown metrics application).I use a scheduled task to
periodically timeout old sessions.

 
It's a bit of work to set up, but you gain complete control.In CF
5/4.5 you must understand locking pretty well however or else you'll be
dealing with performance and stability issues.However with good
locking and an eye towards performance I've never had a performance or
stability problem with this code.It's used on at least one
high-traffic site as well.

 
Jim Davis

 
-Original Message-
From: brob [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 07, 2003 4:07 PM
To: CF-Talk
Subject: Re: How to count sessions

 
is there an equivalent for CF 5? :)

thanks!
- Original Message - 
From: [EMAIL PROTECTED] 
To: CF-Talk 
Sent: Friday, November 07, 2003 2:58 PM
Subject: RE: How to count sessions

actually there is...one way in CFMX is this quick stuff

cfapplication name=sessionLister sessionManagement=yes

cfset tracker = createObject(java,
coldfusion.runtime.SessionTracker)
cfset sessions = tracker.getSessionCollection(myappname)

cfdump var=#sessions#

Ray Camden has some other code for this...a flash app even...out on
his blog under http://www.camdenfamily.com/morpheus/blog/

Doug

-Original Message-
From: brob [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:56 PM
To: CF-Talk
Subject: Re: How to count sessions

I dont think there's a server variable that counts the number of
unique sessions available.You can find out this way thoughFirst yo
have an application variable like application.counter, and then
everytime a member logs in you increment that counter by 1.

Be sure to check for things like if they are already logged in and are
just signing in again, to not increment the counter.You can also avoid
this problem by writing code on the login page to forward them to their
member page if their logging session variable is TRUE.That way they
dont have to put in their username/password twice
 - Original Message - 
 From: Eric Creese 
 To: CF-Talk 
 Sent: Friday, November 07, 2003 2:22 PM
 Subject: How to count sessions

 How can you count the number of active session are opened. For
instance I have a membership site and I want to get a count of members
who have logged in and have an open session.

 E

 _

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Debug output order

2003-11-07 Thread Mark A. Kruger - CFG
Steve,

What debug template are you using - and did you make any changes to it?

-mark

-Original Message-
From: DURETTE, STEVEN J (AIT) [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:18 PM
To: CF-Talk
Subject: RE: Debug output order

Mark,

I beg to differ.

I'm using CFMX 6.1

For a page I am viewing they are in this order:
1) Application.cfm
2) global.cfm
3) varload.cfm
4) CategoryDefine.cfm

but the order in the debug output is:
1) Application.cfm
2) CategoryDefine.cfm
3) global.cfm
4) varload.cfm

Steve

-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 4:16 PM
To: CF-Talk
Subject: RE: Debug output order

Jeff,

There's not a way in CF 5 - in CFMX there is an open template - and they
actually ARE in order by default.What version
of ACB are you using?

-Mark

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 2:22 PM
 To: CF-Talk
 Subject: Debug output order

 Hi folks,

 I am running CF5 on Win2k and I am trying to debug something in
AbleCommerce
 (hold your groans).

 I have set all debug info to be dumped to the screen in cf administrator.
I
 would like to see the order that templates are getting processed.
However, the
 template execution list is in alphabetical order.Is there a way to
change this
 so that it will list them in the order that they are processed?

 Thanks in advance for any suggestions.

 --Jeff
 _
 Jeff Langevin
Appalachian Mountain Club
 MIS Department5 Joy Street, Boston,
 Massachusetts 02108

 Don't judge each day by the harvest you reap, but by the seeds you plant.
 --Robert Louis Stevenson

 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Debug output order

2003-11-07 Thread DURETTE, STEVEN J (AIT)
The default one that installed.No changes.It just alphabetizes the list.

 
Here is an example:

 
Total Time	 Avg Time	 Count	 Template	
60 ms	 60 ms	 1	 C:\Inetpub\wwwroot\BAU\Application.cfm	
60 ms	 60 ms	 1
C:\Inetpub\wwwroot\BAU\ForceLoadTool\Application.cfm	
10 ms	 10 ms	 1	top level
http://ewst70/CFIDE/debug/images/topdoc.gif
C:\Inetpub\wwwroot\BAU\ForceLoadTool\CategoryDefine.cfm	
10 ms	 10 ms	 1	 C:\Inetpub\wwwroot\BAU\includes\VarLoad.cfm	
0 ms	 0 ms	 1	 C:\Inetpub\wwwroot\BAU\ForceLoadTool\global.cfm

0 ms	 0 ms	 1	 C:\Inetpub\wwwroot\BAU\global.cfm	
30 ms		 STARTUP, PARSING, COMPILING, LOADING,  SHUTDOWN	
100 ms		 TOTAL EXECUTION TIME	

 
Before anyone says anything about using c:\inetpub\wwwroot, this is a
development server!

 
The actual full order is:
1) C:\Inetpub\wwwroot\BAU\ForceLoadTool\Application.cfm
2) C:\Inetpub\wwwroot\BAU\Application.cfm
3) C:\Inetpub\wwwroot\BAU\global.cfm
4) C:\Inetpub\wwwroot\BAU\includes\VarLoad.cfm
5) C:\Inetpub\wwwroot\BAU\ForceLoadTool\global.cfm
6) C:\Inetpub\wwwroot\BAU\ForceLoadTool\CategoryDefine.cfm

 
Steve

-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 4:34 PM
To: CF-Talk
Subject: RE: Debug output order

Steve,

What debug template are you using - and did you make any changes to it?

-mark

-Original Message-
From: DURETTE, STEVEN J (AIT) [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:18 PM
To: CF-Talk
Subject: RE: Debug output order

Mark,

I beg to differ.

I'm using CFMX 6.1

For a page I am viewing they are in this order:
1) Application.cfm
2) global.cfm
3) varload.cfm
4) CategoryDefine.cfm

but the order in the debug output is:
1) Application.cfm
2) CategoryDefine.cfm
3) global.cfm
4) varload.cfm

Steve

-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 4:16 PM
To: CF-Talk
Subject: RE: Debug output order

Jeff,

There's not a way in CF 5 - in CFMX there is an open template - and they
actually ARE in order by default.What version
of ACB are you using?

-Mark

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 2:22 PM
 To: CF-Talk
 Subject: Debug output order

 Hi folks,

 I am running CF5 on Win2k and I am trying to debug something in
AbleCommerce
 (hold your groans).

 I have set all debug info to be dumped to the screen in cf
administrator.
I
 would like to see the order that templates are getting processed.
However, the
 template execution list is in alphabetical order.Is there a way to
change this
 so that it will list them in the order that they are processed?

 Thanks in advance for any suggestions.

 --Jeff
 _
 Jeff Langevin
Appalachian Mountain Club
 MIS Department5 Joy Street, Boston,
 Massachusetts 02108

 Don't judge each day by the harvest you reap, but by the seeds you
plant.
 --Robert Louis Stevenson

 _

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to count sessions

2003-11-07 Thread Eric Creese
I pasted this code into a cfm page and then called it. I just want to get a number of active session instead I got a table print out of stuff.

-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:18 PM
To: CF-Talk
Subject: RE: How to count sessions

wonderful... nice trick - very helpful.

-Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 2:58 PM
To: CF-Talk
Subject: RE: How to count sessions

actually there is...one way in CFMX is this quick stuff

cfapplication name=sessionLister sessionManagement=yes

cfset tracker = createObject(java, coldfusion.runtime.SessionTracker)
cfset sessions = tracker.getSessionCollection(myappname)

cfdump var=#sessions#

Ray Camden has some other code for this...a flash app even...out on his blog under
http://www.camdenfamily.com/morpheus/blog/

Doug

-Original Message-
From: brob [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:56 PM
To: CF-Talk
Subject: Re: How to count sessions

I dont think there's a server variable that counts the number of unique sessions available.You can find out this way
thoughFirst yo have an application variable like application.counter, and then everytime a member logs in you
increment that counter by 1.

Be sure to check for things like if they are already logged in and are just signing in again, to not increment the
counter.You can also avoid this problem by writing code on the login page to forward them to their member page if
their logging session variable is TRUE.That way they dont have to put in their username/password twice
 - Original Message -
 From: Eric Creese
 To: CF-Talk
 Sent: Friday, November 07, 2003 2:22 PM
 Subject: How to count sessions

 How can you count the number of active session are opened. For instance I have a membership site and I want to get a
count of members who have logged in and have an open session.

 E

 _

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Debug output order

2003-11-07 Thread Debbie Dickerson
Switch the output mode from 'summary' to 'tree', and it should show in the
order it's processed.

 
Debbie

-Original Message-
From: DURETTE, STEVEN J (AIT) [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 07, 2003 4:38 PM
To: CF-Talk
Subject: RE: Debug output order

The default one that installed.No changes.It just alphabetizes the list.

Here is an example:

Total Time Avg Time Count Template 
60 ms 60 ms 1 C:\Inetpub\wwwroot\BAU\Application.cfm 
60 ms 60 ms 1
C:\Inetpub\wwwroot\BAU\ForceLoadTool\Application.cfm 
10 ms 10 ms 1top level
http://ewst70/CFIDE/debug/images/topdoc.gif
C:\Inetpub\wwwroot\BAU\ForceLoadTool\CategoryDefine.cfm 
10 ms 10 ms 1 C:\Inetpub\wwwroot\BAU\includes\VarLoad.cfm 
0 ms 0 ms 1 C:\Inetpub\wwwroot\BAU\ForceLoadTool\global.cfm

0 ms 0 ms 1 C:\Inetpub\wwwroot\BAU\global.cfm 
30 ms STARTUP, PARSING, COMPILING, LOADING,  SHUTDOWN 
100 ms TOTAL EXECUTION TIME 

Before anyone says anything about using c:\inetpub\wwwroot, this is a
development server!

The actual full order is:
1) C:\Inetpub\wwwroot\BAU\ForceLoadTool\Application.cfm
2) C:\Inetpub\wwwroot\BAU\Application.cfm
3) C:\Inetpub\wwwroot\BAU\global.cfm
4) C:\Inetpub\wwwroot\BAU\includes\VarLoad.cfm
5) C:\Inetpub\wwwroot\BAU\ForceLoadTool\global.cfm
6) C:\Inetpub\wwwroot\BAU\ForceLoadTool\CategoryDefine.cfm

Steve

-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 4:34 PM
To: CF-Talk
Subject: RE: Debug output order

Steve,

What debug template are you using - and did you make any changes to it?

-mark

-Original Message-
From: DURETTE, STEVEN J (AIT) [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:18 PM
To: CF-Talk
Subject: RE: Debug output order

Mark,

I beg to differ.

I'm using CFMX 6.1

For a page I am viewing they are in this order:
1) Application.cfm
2) global.cfm
3) varload.cfm
4) CategoryDefine.cfm

but the order in the debug output is:
1) Application.cfm
2) CategoryDefine.cfm
3) global.cfm
4) varload.cfm

Steve

-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 4:16 PM
To: CF-Talk
Subject: RE: Debug output order

Jeff,

There's not a way in CF 5 - in CFMX there is an open template - and they
actually ARE in order by default.What version
of ACB are you using?

-Mark

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 2:22 PM
 To: CF-Talk
 Subject: Debug output order

 Hi folks,

 I am running CF5 on Win2k and I am trying to debug something in
AbleCommerce
 (hold your groans).

 I have set all debug info to be dumped to the screen in cf
administrator.
I
 would like to see the order that templates are getting processed.
However, the
 template execution list is in alphabetical order.Is there a way to
change this
 so that it will list them in the order that they are processed?

 Thanks in advance for any suggestions.

 --Jeff
 _
 Jeff Langevin
Appalachian Mountain Club
 MIS Department5 Joy Street, Boston,
 Massachusetts 02108

 Don't judge each day by the harvest you reap, but by the seeds you
plant.
 --Robert Louis Stevenson

 _

_

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re:RE: Debug output order

2003-11-07 Thread jlangevin
That's what I was afraid of.Thanks for the info.

We're running version 3.04.Every time I have to troubleshoot anything in this
version I want to quit web development!

--Jeff
_
Jeff LangevinAppalachian Mountain Club
MIS Department5 Joy Street, Boston,
Massachusetts 02108

Don't judge each day by the harvest you reap, but by the seeds you plant.
--Robert Louis Stevenson

Reply Separator
Subject: RE: Debug output order
Author: [EMAIL PROTECTED]
Date: 11/7/2003 4:29 PM

Jeff,

There's not a way in CF 5 - in CFMX there is an open template - and they actually ARE in order by default.What version
of ACB are you using?

-Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 2:22 PM
To: CF-Talk
Subject: Debug output order

Hi folks,

I am running CF5 on Win2k and I am trying to debug something in AbleCommerce
(hold your groans).

I have set all debug info to be dumped to the screen in cf administrator.I
would like to see the order that templates are getting processed.However, the
template execution list is in alphabetical order.Is there a way to change this
so that it will list them in the order that they are processed?

Thanks in advance for any suggestions.

--Jeff
_
Jeff LangevinAppalachian Mountain Club
MIS Department5 Joy Street, Boston,
Massachusetts 02108

Don't judge each day by the harvest you reap, but by the seeds you plant.
--Robert Louis Stevenson


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




CFMX from CF5

2003-11-07 Thread Richard Wigfall
I have just setup a new ColdFusion MX6.1 Linux box running Apache, and I want to move all of the content including the Verity Collections from a Linux boxrunning ColdFusion5 and Apache, to the ne box running CFMX6.1.Can anyone tell me what I need to do to accomplish this move, including how to move the Verity Collections?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Debug output order

2003-11-07 Thread Debbie Dickerson
Forget I said that. Didn't notice you said CF5.

-Original Message-
From: Debbie Dickerson [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 07, 2003 4:44 PM
To: CF-Talk
Subject: RE: Debug output order

Switch the output mode from 'summary' to 'tree', and it should show in the
order it's processed.

Debbie

-Original Message-
From: DURETTE, STEVEN J (AIT) [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 07, 2003 4:38 PM
To: CF-Talk
Subject: RE: Debug output order

The default one that installed.No changes.It just alphabetizes the list.

Here is an example:

Total Time Avg Time Count Template 
60 ms 60 ms 1 C:\Inetpub\wwwroot\BAU\Application.cfm 
60 ms 60 ms 1
C:\Inetpub\wwwroot\BAU\ForceLoadTool\Application.cfm 
10 ms 10 ms 1top level
http://ewst70/CFIDE/debug/images/topdoc.gif
C:\Inetpub\wwwroot\BAU\ForceLoadTool\CategoryDefine.cfm 
10 ms 10 ms 1 C:\Inetpub\wwwroot\BAU\includes\VarLoad.cfm 
0 ms 0 ms 1 C:\Inetpub\wwwroot\BAU\ForceLoadTool\global.cfm

0 ms 0 ms 1 C:\Inetpub\wwwroot\BAU\global.cfm 
30 ms STARTUP, PARSING, COMPILING, LOADING,  SHUTDOWN 
100 ms TOTAL EXECUTION TIME 

Before anyone says anything about using c:\inetpub\wwwroot, this is a
development server!

The actual full order is:
1) C:\Inetpub\wwwroot\BAU\ForceLoadTool\Application.cfm
2) C:\Inetpub\wwwroot\BAU\Application.cfm
3) C:\Inetpub\wwwroot\BAU\global.cfm
4) C:\Inetpub\wwwroot\BAU\includes\VarLoad.cfm
5) C:\Inetpub\wwwroot\BAU\ForceLoadTool\global.cfm
6) C:\Inetpub\wwwroot\BAU\ForceLoadTool\CategoryDefine.cfm

Steve

-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 4:34 PM
To: CF-Talk
Subject: RE: Debug output order

Steve,

What debug template are you using - and did you make any changes to it?

-mark

-Original Message-
From: DURETTE, STEVEN J (AIT) [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:18 PM
To: CF-Talk
Subject: RE: Debug output order

Mark,

I beg to differ.

I'm using CFMX 6.1

For a page I am viewing they are in this order:
1) Application.cfm
2) global.cfm
3) varload.cfm
4) CategoryDefine.cfm

but the order in the debug output is:
1) Application.cfm
2) CategoryDefine.cfm
3) global.cfm
4) varload.cfm

Steve

-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 4:16 PM
To: CF-Talk
Subject: RE: Debug output order

Jeff,

There's not a way in CF 5 - in CFMX there is an open template - and they
actually ARE in order by default.What version
of ACB are you using?

-Mark

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 2:22 PM
 To: CF-Talk
 Subject: Debug output order

 Hi folks,

 I am running CF5 on Win2k and I am trying to debug something in
AbleCommerce
 (hold your groans).

 I have set all debug info to be dumped to the screen in cf
administrator.
I
 would like to see the order that templates are getting processed.
However, the
 template execution list is in alphabetical order.Is there a way to
change this
 so that it will list them in the order that they are processed?

 Thanks in advance for any suggestions.

 --Jeff
 _
 Jeff Langevin
Appalachian Mountain Club
 MIS Department5 Joy Street, Boston,
 Massachusetts 02108

 Don't judge each day by the harvest you reap, but by the seeds you
plant.
 --Robert Louis Stevenson

 _

_

_

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to count sessions

2003-11-07 Thread cf
http://tutorial12.easycfm.com/
copy  paste is your friend ;)

put it in the Application.cfm page







 where should I put this code?

 -Original Message-
 From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 3:18 PM
 To: CF-Talk
 Subject: RE: How to count sessions


 wonderful... nice trick - very helpful.

 -Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 2:58 PM
To: CF-Talk
Subject: RE: How to count sessions

actually there is...one way in CFMX is this quick stuff

cfapplication name=sessionLister sessionManagement=yes

cfset tracker = createObject(java,
 coldfusion.runtime.SessionTracker) cfset sessions =
 tracker.getSessionCollection(myappname)

cfdump var=#sessions#

Ray Camden has some other code for this...a flash app even...out on
 his blog under
 http://www.camdenfamily.com/morpheus/blog/

Doug

-Original Message-
From: brob [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:56 PM
To: CF-Talk
Subject: Re: How to count sessions

I dont think there's a server variable that counts the number of
 unique sessions available.You can find out this way
 thoughFirst yo have an application variable like
 application.counter, and then everytime a member logs in you increment
 that counter by 1.

Be sure to check for things like if they are already logged in and are
 just signing in again, to not increment the
 counter.You can also avoid this problem by writing code on the login
 page to forward them to their member page if their logging session
 variable is TRUE.That way they dont have to put in their
 username/password twice
- Original Message -
From: Eric Creese
To: CF-Talk
Sent: Friday, November 07, 2003 2:22 PM
Subject: How to count sessions

How can you count the number of active session are opened. For
 instance I have a membership site and I want to get a
 count of members who have logged in and have an open session.

E

_


_


 
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to count sessions

2003-11-07 Thread Douglas.Knudsen
in a CFM page?You can place it anywhere in your webroot.Just need to know the application name...I'm guessing there is a way to get data on all sessions without knowing the session names, but I'm out of time here to try.Play around with it...from the code below do a 
cfdump var=#tracker#
to see some methods and properties.

Doug

-Original Message-
From: Eric Creese [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 4:17 PM
To: CF-Talk
Subject: RE: How to count sessions

where should I put this code?

-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:18 PM
To: CF-Talk
Subject: RE: How to count sessions

wonderful... nice trick - very helpful.

-Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 2:58 PM
To: CF-Talk
Subject: RE: How to count sessions

actually there is...one way in CFMX is this quick stuff

cfapplication name=sessionLister sessionManagement=yes

cfset tracker = createObject(java, coldfusion.runtime.SessionTracker)
cfset sessions = tracker.getSessionCollection(myappname)

cfdump var=#sessions#

Ray Camden has some other code for this...a flash app even...out on his blog under
http://www.camdenfamily.com/morpheus/blog/

Doug

-Original Message-
From: brob [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:56 PM
To: CF-Talk
Subject: Re: How to count sessions

I dont think there's a server variable that counts the number of unique sessions available.You can find out this way
thoughFirst yo have an application variable like application.counter, and then everytime a member logs in you
increment that counter by 1.

Be sure to check for things like if they are already logged in and are just signing in again, to not increment the
counter.You can also avoid this problem by writing code on the login page to forward them to their member page if
their logging session variable is TRUE.That way they dont have to put in their username/password twice
 - Original Message -
 From: Eric Creese
 To: CF-Talk
 Sent: Friday, November 07, 2003 2:22 PM
 Subject: How to count sessions

 How can you count the number of active session are opened. For instance I have a membership site and I want to get a
count of members who have logged in and have an open session.

 E

 _

_

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




replace(mystuff, with this stuff)

2003-11-07 Thread Bailey, Neal
Hey guys...

 
I have another issue I'm trying to figure out. If you have been following my
previous posts I needed to grab some xml data and insert it into our
database for viewing on our website. I now have all this working just great
but now I have noticed that within some of the content that we grab there
are a few links associated with some text. I need to strip out the links and
just leave the text.Is there an easy way to do this? Several of the
documents have links and I don't think creating a separate search and
replace for each instance would be ideal. I thought I saw a tag or something
that would strip out certain html tags but I can't seem to find this
anywhere now. 

 
Any ideas... ?

 
Thanks Again,

 
- Neal

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




cfoutput?

2003-11-07 Thread Bailey, Neal
Ok here is another one for ya...

 
I have a bunch of html documents stored in my database and in these
documents I need to run some ColdFusion code before it's displayed. But
since I'm outputting the html using ColdFusion it will not work. Is there
some other way of running my cf code before or after I call it or something?

Hopes this makes sense... 

 
Thanks,
- Neal

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to count sessions

2003-11-07 Thread Eric Creese
ok I did the tutorial and got what I wanted. Now here is a tough one. can I use the the session vars to to query my users table to display the users names?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:55 PM
To: CF-Talk
Subject: RE: How to count sessions

http://tutorial12.easycfm.com/
copy  paste is your friend ;)

put it in the Application.cfm page



 where should I put this code?

 -Original Message-
 From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 3:18 PM
 To: CF-Talk
 Subject: RE: How to count sessions


 wonderful... nice trick - very helpful.

 -Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 2:58 PM
To: CF-Talk
Subject: RE: How to count sessions

actually there is...one way in CFMX is this quick stuff

cfapplication name=sessionLister sessionManagement=yes

cfset tracker = createObject(java,
 coldfusion.runtime.SessionTracker) cfset sessions =
 tracker.getSessionCollection(myappname)

cfdump var=#sessions#

Ray Camden has some other code for this...a flash app even...out on
 his blog under
 http://www.camdenfamily.com/morpheus/blog/

Doug

-Original Message-
From: brob [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:56 PM
To: CF-Talk
Subject: Re: How to count sessions

I dont think there's a server variable that counts the number of
 unique sessions available.You can find out this way
 thoughFirst yo have an application variable like
 application.counter, and then everytime a member logs in you increment
 that counter by 1.

Be sure to check for things like if they are already logged in and are
 just signing in again, to not increment the
 counter.You can also avoid this problem by writing code on the login
 page to forward them to their member page if their logging session
 variable is TRUE.That way they dont have to put in their
 username/password twice
- Original Message -
From: Eric Creese
To: CF-Talk
Sent: Friday, November 07, 2003 2:22 PM
Subject: How to count sessions

How can you count the number of active session are opened. For
 instance I have a membership site and I want to get a
 count of members who have logged in and have an open session.

E

_


_


 
_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Using complex data with web services

2003-11-07 Thread Nelson Winters
I'm trying to use a .Net based web service.I was able to get the following simple web service working.

cfinvoke method=getWords
 webservice=http://www28.brinkster.com/hegdes/NumberToWords.asmx?WSDL
 returnVariable=Test
 cfinvokeargument name=myNumber value=5892.25
/cfinvoke

However, the web service I'm actually trying to use specifies that I need to pass the following:

soap:Body
 oRequest
oCredentials
sCompanyNameABC/sCompanyName
sUserNamejdoe/sUserName
sPasswordabc123/sPassword
/oCredentials
sCompanyNameABC/sCompanyName
sLoginjsmith/sLogin
 /oRequest
/soap:Body

My question is how do I pass complex data like this?I've been trying to use the argumentCollection parameter but have been unsuccessful.

Thanks,

-Nelson


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to count sessions

2003-11-07 Thread cf
you know im not sure.
 I have thought about doing that and doing the sort on the query by
session name but have never tried it.

I came to the conclusion that if i want to do that then i would write the
logins to a database  pull them from that. Then have a script to run
every 10 minutes or so to see if they are still active on the site, so
every page have it enter it to the db. And in the script have it do a
delete on anything over 10 minutes old.

but then again i dont know crap:)







 ok I did the tutorial and got what I wanted. Now here is a tough one.
 can I use the the session vars to to query my users table to display the
 users names?

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 3:55 PM
 To: CF-Talk
 Subject: RE: How to count sessions


 http://tutorial12.easycfm.com/
 copy  paste is your friend ;)

 put it in the Application.cfm page







 where should I put this code?

 -Original Message-
 From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 3:18 PM
 To: CF-Talk
 Subject: RE: How to count sessions


 wonderful... nice trick - very helpful.

 -Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 2:58 PM
To: CF-Talk
Subject: RE: How to count sessions

actually there is...one way in CFMX is this quick stuff

cfapplication name=sessionLister sessionManagement=yes

cfset tracker = createObject(java,
 coldfusion.runtime.SessionTracker) cfset sessions =
 tracker.getSessionCollection(myappname)

cfdump var=#sessions#

Ray Camden has some other code for this...a flash app even...out on
 his blog under
 http://www.camdenfamily.com/morpheus/blog/

Doug

-Original Message-
From: brob [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:56 PM
To: CF-Talk
Subject: Re: How to count sessions

I dont think there's a server variable that counts the number of
 unique sessions available.You can find out this way
 thoughFirst yo have an application variable like
 application.counter, and then everytime a member logs in you increment
 that counter by 1.

Be sure to check for things like if they are already logged in and
 are
 just signing in again, to not increment the
 counter.You can also avoid this problem by writing code on the login
 page to forward them to their member page if their logging session
 variable is TRUE.That way they dont have to put in their
 username/password twice
- Original Message -
From: Eric Creese
To: CF-Talk
Sent: Friday, November 07, 2003 2:22 PM
Subject: How to count sessions

How can you count the number of active session are opened. For
 instance I have a membership site and I want to get a
 count of members who have logged in and have an open session.

E

_


_



_


 
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Using complex data with web services

2003-11-07 Thread Matt Liotta
 soap:Body
     oRequest
 oCredentials
 sCompanyNameABC/sCompanyName
 sUserNamejdoe/sUserName
 sPasswordabc123/sPassword
 /oCredentials
 sCompanyNameABC/sCompanyName
 sLoginjsmith/sLogin
     /oRequest
 /soap:Body

You would create a CFC with three properties --sCompanyName, sUserName, 
and sPassword-- specified using the cfproperty tag.

Matt Liotta
President  CEO
Montara Software, Inc.
http://www.MontaraSoftware.com
(888) 408-0900 x901

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to count sessions

2003-11-07 Thread Eric Creese
How can I convert #StructCount(Application.UsersInfo)# into something that will make the Application.UsersInfo a simple value that I can then use for querying?

-Original Message-
From: Eric Creese 
Sent: Friday, November 07, 2003 4:13 PM
To: CF-Talk
Subject: RE: How to count sessions

ok I did the tutorial and got what I wanted. Now here is a tough one. can I use the the session vars to to query my users table to display the users names?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:55 PM
To: CF-Talk
Subject: RE: How to count sessions

http://tutorial12.easycfm.com/
copy  paste is your friend ;)

put it in the Application.cfm page

 where should I put this code?

 -Original Message-
 From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 3:18 PM
 To: CF-Talk
 Subject: RE: How to count sessions


 wonderful... nice trick - very helpful.

 -Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 2:58 PM
To: CF-Talk
Subject: RE: How to count sessions

actually there is...one way in CFMX is this quick stuff

cfapplication name=sessionLister sessionManagement=yes

cfset tracker = createObject(java,
 coldfusion.runtime.SessionTracker) cfset sessions =
 tracker.getSessionCollection(myappname)

cfdump var=#sessions#

Ray Camden has some other code for this...a flash app even...out on
 his blog under
 http://www.camdenfamily.com/morpheus/blog/

Doug

-Original Message-
From: brob [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:56 PM
To: CF-Talk
Subject: Re: How to count sessions

I dont think there's a server variable that counts the number of
 unique sessions available.You can find out this way
 thoughFirst yo have an application variable like
 application.counter, and then everytime a member logs in you increment
 that counter by 1.

Be sure to check for things like if they are already logged in and are
 just signing in again, to not increment the
 counter.You can also avoid this problem by writing code on the login
 page to forward them to their member page if their logging session
 variable is TRUE.That way they dont have to put in their
 username/password twice
- Original Message -
From: Eric Creese
To: CF-Talk
Sent: Friday, November 07, 2003 2:22 PM
Subject: How to count sessions

How can you count the number of active session are opened. For
 instance I have a membership site and I want to get a
 count of members who have logged in and have an open session.

E

_


_


 
_

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Entering A Time Stamp in DB -- Problem

2003-11-07 Thread Nick Baker
CF V 5

MS Access DB

I have time in the following format that was extracted in one CF template 
and stuffed in a DB without any hitch.

{ts '2003-11-07 19:57:14'}

When this same info iss passed as part of a text to another CF template, 
using CFHTTP, the same CF DB CFQUERY code throws an error when attempting 
to insert into a copy of the same DB.

In both DB's I am trying to stuff the info into a Date/Time field, i.e., 
StartTime.

CFQUERY NAME=myTask DATASOURCE=#DataSourceName#
	INSERT INTOPingResults (	DomainName,
		StartTime,
		Dfield1,
		Dfield2,
		Dfield3,
		Dfield4)
	 VALUES (	
	'#session.RecordArray[1]#',
	'#session.RecordArray[2]#',
	'#session.RecordArray[4]#',
	'#session.RecordArray[5]#',
	'#session.RecordArray[6]#',
	'#session.RecordArray[7]#'
/CFQUERY

Apparently something is being lost in the transfer process, and I don't 
know how to get it back.

Thanks,

Nick

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: RE: Debug output order

2003-11-07 Thread Mark A. Kruger - CFG
I hate to say this but 3.04 is easier than 4.x.If you see 4.x for CFMX run.And whatever you do - don't upgrade!

-Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:55 PM
To: CF-Talk
Subject: Re:RE: Debug output order

That's what I was afraid of.Thanks for the info.

We're running version 3.04.Every time I have to troubleshoot anything in this
version I want to quit web development!

--Jeff
_
Jeff LangevinAppalachian Mountain Club
MIS Department5 Joy Street, Boston,
Massachusetts 02108

Don't judge each day by the harvest you reap, but by the seeds you plant.
--Robert Louis Stevenson

Reply Separator
Subject: RE: Debug output order
Author: [EMAIL PROTECTED]
Date: 11/7/2003 4:29 PM

Jeff,

There's not a way in CF 5 - in CFMX there is an open template - and they actually ARE in order by default.What
version
of ACB are you using?

-Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 2:22 PM
To: CF-Talk
Subject: Debug output order

Hi folks,

I am running CF5 on Win2k and I am trying to debug something in AbleCommerce
(hold your groans).

I have set all debug info to be dumped to the screen in cf administrator.I
would like to see the order that templates are getting processed.However, the
template execution list is in alphabetical order.Is there a way to change this
so that it will list them in the order that they are processed?

Thanks in advance for any suggestions.

--Jeff
_
Jeff LangevinAppalachian Mountain Club
MIS Department5 Joy Street, Boston,
Massachusetts 02108

Don't judge each day by the harvest you reap, but by the seeds you plant.
--Robert Louis Stevenson


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Debug output order

2003-11-07 Thread Mark A. Kruger - CFG
Steve,

Here's one from my CFMX server.

 (0ms) E:\inetpub\wwwdocs\Clients\Application.cfm
 (94ms) E:\inetpub\wwwdocs\Clients\Client_Documents.cfm
·(0ms) E:\inetpub\wwwdocs\Clients\includes\control.cfm @ line 17
·(47ms) E:\inetpub\wwwdocs\Clients\queries\qry_ClientDocs.cfm @ line 20
·(0ms) E:\inetpub\wwwdocs\Clients\display\standard_header.cfm @ line 27
··(0ms) E:\inetpub\wwwdocs\Clients\includes\control.cfm @ line 14
··(0ms) E:\inetpub\wwwdocs\Clients\display\Index_stylesheet.cfm @ line 15
··(0ms) E:\inetpub\wwwdocs\Clients\display\admin_horiz_Menu.cfm @ line 19
·(47ms) E:\inetpub\wwwdocs\Clients\display\doc_NewDocLinks.cfm @ line 44
··(32ms) E:\inetpub\wwwdocs\Clients\display\Doc_links.cfm @ line 73
·(0ms) E:\inetpub\wwwdocs\Clients\display\standard_footer.cfm @ line 50

As you can see they are NOT in order.One thing to note, I have the output mode set to TREE, not SUMMARY (in the cf
admin debug settings page.

-Mark

-Original Message-
From: DURETTE, STEVEN J (AIT) [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:38 PM
To: CF-Talk
Subject: RE: Debug output order

The default one that installed.No changes.It just alphabetizes the list.

Here is an example:

Total Time Avg Time Count Template
60 ms 60 ms 1 C:\Inetpub\wwwroot\BAU\Application.cfm
60 ms 60 ms 1
C:\Inetpub\wwwroot\BAU\ForceLoadTool\Application.cfm
10 ms 10 ms 1top level
http://ewst70/CFIDE/debug/images/topdoc.gif
C:\Inetpub\wwwroot\BAU\ForceLoadTool\CategoryDefine.cfm
10 ms 10 ms 1 C:\Inetpub\wwwroot\BAU\includes\VarLoad.cfm
0 ms 0 ms 1 C:\Inetpub\wwwroot\BAU\ForceLoadTool\global.cfm

0 ms 0 ms 1 C:\Inetpub\wwwroot\BAU\global.cfm
30 ms STARTUP, PARSING, COMPILING, LOADING,  SHUTDOWN
100 ms TOTAL EXECUTION TIME

Before anyone says anything about using c:\inetpub\wwwroot, this is a
development server!

The actual full order is:
1) C:\Inetpub\wwwroot\BAU\ForceLoadTool\Application.cfm
2) C:\Inetpub\wwwroot\BAU\Application.cfm
3) C:\Inetpub\wwwroot\BAU\global.cfm
4) C:\Inetpub\wwwroot\BAU\includes\VarLoad.cfm
5) C:\Inetpub\wwwroot\BAU\ForceLoadTool\global.cfm
6) C:\Inetpub\wwwroot\BAU\ForceLoadTool\CategoryDefine.cfm

Steve

-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 4:34 PM
To: CF-Talk
Subject: RE: Debug output order

Steve,

What debug template are you using - and did you make any changes to it?

-mark

 -Original Message-
 From: DURETTE, STEVEN J (AIT) [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 3:18 PM
 To: CF-Talk
 Subject: RE: Debug output order

 Mark,

 I beg to differ.

 I'm using CFMX 6.1

 For a page I am viewing they are in this order:
 1) Application.cfm
 2) global.cfm
 3) varload.cfm
 4) CategoryDefine.cfm

 but the order in the debug output is:
 1) Application.cfm
 2) CategoryDefine.cfm
 3) global.cfm
 4) varload.cfm

 Steve

 -Original Message-
 From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 4:16 PM
 To: CF-Talk
 Subject: RE: Debug output order

 Jeff,

 There's not a way in CF 5 - in CFMX there is an open template - and they
 actually ARE in order by default.What version
 of ACB are you using?

 -Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 2:22 PM
To: CF-Talk
Subject: Debug output order

Hi folks,

I am running CF5 on Win2k and I am trying to debug something in
 AbleCommerce
(hold your groans).

I have set all debug info to be dumped to the screen in cf
administrator.
 I
would like to see the order that templates are getting processed.
 However, the
template execution list is in alphabetical order.Is there a way to
 change this
so that it will list them in the order that they are processed?

Thanks in advance for any suggestions.

--Jeff
_
Jeff Langevin
 Appalachian Mountain Club
MIS Department5 Joy Street, Boston,
Massachusetts 02108

Don't judge each day by the harvest you reap, but by the seeds you
plant.
--Robert Louis Stevenson

_

 _


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




CFQUERYPARAM bug?

2003-11-07 Thread Jim Curran
Hey All,

Just figured i'd see if anyone else has insight on this:

Using 6.1 and MSSQL Server

CFQUERY
	SELECT	*
	FROM		table
	WHERE		the_id = cfqueryparam value=#the_ID#
cfsqltype=CF_SQL_INTEGER
	AND		the_other_id = cfqueryparam value=#the_other_ID#
cfsqltype=CF_SQL_INTEGER
/CFQUERY

If i have *no* space after the first queryparam and before the return, I get
an invalid datatype conversion

Seems as if the cfqueryparam does not apply spacing and the carrage return
and tab characters are lost preceding the AND...

It's simple to prevent... But wanted to see if I should post this to MACR or
let it be..

- j

james curran
technical director
nylon technology
[EMAIL PROTECTED]
212-691-1134

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to count sessions

2003-11-07 Thread Eric Creese
thanks for your honesty.LOL

 
Have a great weekend!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 4:19 PM
To: CF-Talk
Subject: RE: How to count sessions

you know im not sure.
I have thought about doing that and doing the sort on the query by
session name but have never tried it.

I came to the conclusion that if i want to do that then i would write the
logins to a database  pull them from that. Then have a script to run
every 10 minutes or so to see if they are still active on the site, so
every page have it enter it to the db. And in the script have it do a
delete on anything over 10 minutes old.

but then again i dont know crap:)



 ok I did the tutorial and got what I wanted. Now here is a tough one.
 can I use the the session vars to to query my users table to display the
 users names?

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 3:55 PM
 To: CF-Talk
 Subject: RE: How to count sessions


 http://tutorial12.easycfm.com/
 copy  paste is your friend ;)

 put it in the Application.cfm page







 where should I put this code?

 -Original Message-
 From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 3:18 PM
 To: CF-Talk
 Subject: RE: How to count sessions


 wonderful... nice trick - very helpful.

 -Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 2:58 PM
To: CF-Talk
Subject: RE: How to count sessions

actually there is...one way in CFMX is this quick stuff

cfapplication name=sessionLister sessionManagement=yes

cfset tracker = createObject(java,
 coldfusion.runtime.SessionTracker) cfset sessions =
 tracker.getSessionCollection(myappname)

cfdump var=#sessions#

Ray Camden has some other code for this...a flash app even...out on
 his blog under
 http://www.camdenfamily.com/morpheus/blog/

Doug

-Original Message-
From: brob [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:56 PM
To: CF-Talk
Subject: Re: How to count sessions

I dont think there's a server variable that counts the number of
 unique sessions available.You can find out this way
 thoughFirst yo have an application variable like
 application.counter, and then everytime a member logs in you increment
 that counter by 1.

Be sure to check for things like if they are already logged in and
 are
 just signing in again, to not increment the
 counter.You can also avoid this problem by writing code on the login
 page to forward them to their member page if their logging session
 variable is TRUE.That way they dont have to put in their
 username/password twice
- Original Message -
From: Eric Creese
To: CF-Talk
Sent: Friday, November 07, 2003 2:22 PM
Subject: How to count sessions

How can you count the number of active session are opened. For
 instance I have a membership site and I want to get a
 count of members who have logged in and have an open session.

E

_


_



_


 
_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to count sessions

2003-11-07 Thread DURETTE, STEVEN J (AIT)
Eric,

 
Assuming that Application.UsersInfo is a structure...

 
cfoutput
cfloop list=#structKeyList(Application.UsersInfo, ',')# index=myLoop
 #myLoop# - #Application.UsersInfo[myLoop]#br /
/cfloop
/cfoutput

 
Steve

-Original Message-
From: Eric Creese [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 5:25 PM
To: CF-Talk
Subject: RE: How to count sessions

How can I convert #StructCount(Application.UsersInfo)# into something that
will make the Application.UsersInfo a simple value that I can then use for
querying?

-Original Message-
From: Eric Creese 
Sent: Friday, November 07, 2003 4:13 PM
To: CF-Talk
Subject: RE: How to count sessions

ok I did the tutorial and got what I wanted. Now here is a tough one. can I
use the the session vars to to query my users table to display the users
names?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:55 PM
To: CF-Talk
Subject: RE: How to count sessions

http://tutorial12.easycfm.com/ http://tutorial12.easycfm.com/ 
copy  paste is your friend ;)

put it in the Application.cfm page

 where should I put this code?

 -Original Message-
 From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 3:18 PM
 To: CF-Talk
 Subject: RE: How to count sessions


 wonderful... nice trick - very helpful.

 -Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 2:58 PM
To: CF-Talk
Subject: RE: How to count sessions

actually there is...one way in CFMX is this quick stuff

cfapplication name=sessionLister sessionManagement=yes

cfset tracker = createObject(java,
 coldfusion.runtime.SessionTracker) cfset sessions =
 tracker.getSessionCollection(myappname)

cfdump var=#sessions#

Ray Camden has some other code for this...a flash app even...out on
 his blog under
 http://www.camdenfamily.com/morpheus/blog/
http://www.camdenfamily.com/morpheus/blog/ 

Doug

-Original Message-
From: brob [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:56 PM
To: CF-Talk
Subject: Re: How to count sessions

I dont think there's a server variable that counts the number of
 unique sessions available.You can find out this way
 thoughFirst yo have an application variable like
 application.counter, and then everytime a member logs in you increment
 that counter by 1.

Be sure to check for things like if they are already logged in and are
 just signing in again, to not increment the
 counter.You can also avoid this problem by writing code on the login
 page to forward them to their member page if their logging session
 variable is TRUE.That way they dont have to put in their
 username/password twice
- Original Message -
From: Eric Creese
To: CF-Talk
Sent: Friday, November 07, 2003 2:22 PM
Subject: How to count sessions

How can you count the number of active session are opened. For
 instance I have a membership site and I want to get a
 count of members who have logged in and have an open session.

E

_


_


 
_

_

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to count sessions

2003-11-07 Thread Ryan Kime
FYI.there's also a method called getSessionCount() in
coldfusion.runtime.SessionTracker that returns an int

-Original Message-
From: Eric Creese [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 07, 2003 4:25 PM
To: CF-Talk
Subject: RE: How to count sessions

How can I convert #StructCount(Application.UsersInfo)# into something that
will make the Application.UsersInfo a simple value that I can then use for
querying?

-Original Message-
From: Eric Creese 
Sent: Friday, November 07, 2003 4:13 PM
To: CF-Talk
Subject: RE: How to count sessions

ok I did the tutorial and got what I wanted. Now here is a tough one. can I
use the the session vars to to query my users table to display the users
names?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:55 PM
To: CF-Talk
Subject: RE: How to count sessions

http://tutorial12.easycfm.com/ http://tutorial12.easycfm.com/ 
copy  paste is your friend ;)

put it in the Application.cfm page

 where should I put this code?

 -Original Message-
 From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 3:18 PM
 To: CF-Talk
 Subject: RE: How to count sessions


 wonderful... nice trick - very helpful.

 -Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 07, 2003 2:58 PM
To: CF-Talk
Subject: RE: How to count sessions

actually there is...one way in CFMX is this quick stuff

cfapplication name=sessionLister sessionManagement=yes

cfset tracker = createObject(java,
 coldfusion.runtime.SessionTracker) cfset sessions =
 tracker.getSessionCollection(myappname)

cfdump var=#sessions#

Ray Camden has some other code for this...a flash app even...out on
 his blog under
 http://www.camdenfamily.com/morpheus/blog/
http://www.camdenfamily.com/morpheus/blog/ 

Doug

-Original Message-
From: brob [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:56 PM
To: CF-Talk
Subject: Re: How to count sessions

I dont think there's a server variable that counts the number of
 unique sessions available.You can find out this way
 thoughFirst yo have an application variable like
 application.counter, and then everytime a member logs in you increment
 that counter by 1.

Be sure to check for things like if they are already logged in and are
 just signing in again, to not increment the
 counter.You can also avoid this problem by writing code on the login
 page to forward them to their member page if their logging session
 variable is TRUE.That way they dont have to put in their
 username/password twice
- Original Message -
From: Eric Creese
To: CF-Talk
Sent: Friday, November 07, 2003 2:22 PM
Subject: How to count sessions

How can you count the number of active session are opened. For
 instance I have a membership site and I want to get a
 count of members who have logged in and have an open session.

E

_


_


 
_

_

_


 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




  1   2   >