Re: Variable scope

2009-10-20 Thread Dominic Watson
Oops, should be: 2009/10/20 Dominic Watson > I think that having multiple applications still may not be the most ideal > solution here, depending on whether all these directories do actually come > under the definition of standalone applications. If they don't, using a > single Application.cf

Re: Variable scope

2009-10-20 Thread Dominic Watson
I think that having multiple applications still may not be the most ideal solution here, depending on whether all these directories do actually come under the definition of standalone applications. If they don't, using a single Application.cfc at the root, you could decide whether or not to check

Re: Variable scope

2009-10-19 Thread Patrick Santora
Best of luck! Just know there are options in case you get stuck. Projects like the one you are describing can have some interesting curve balls. Just watch out for them. They can sting! ;-) On Mon, Oct 19, 2009 at 6:57 PM, Brian Bradley wrote: > > We have been using windows iis, etc. since 1999

Re: Variable scope

2009-10-19 Thread Brian Bradley
We have been using windows iis, etc. since 1999 and are trying to take more control since we now have so many bs membership types. It is a crazy project that was just handed to me. I think that I am just going to have to bite the bullet and use cookies to house the information and pass it on

Re: Variable scope

2009-10-19 Thread Patrick Santora
Wow! That makes quite the difference on how you might want to approach this. You have a lot of files to manage, which easily promotes something a little more senior/enterprise based. Knowing this you may want to consider going one of the below routes instead of shoehorning in the bit of code I rec

Re: Variable scope

2009-10-19 Thread Brian Bradley
The thing is, it is a HGE site - 30,000+ documents so some of it is secured and some of it isn't. I figured it would be best at the directory (we are running Windows server) level to just decide which directories get application files that have security and which don't. There are too many

Re: Variable scope

2009-10-19 Thread Patrick Santora
I think I have the findNoCase arguments mixed up :P. Switch them. If you are using CF 7+ then application.cfc should be available to use. -Pat On Mon, Oct 19, 2009 at 3:21 PM, Patrick Santora wrote: > Alan's right. Coldfusion sits on top of the directories, so you can head > the user off at t

Re: Variable scope

2009-10-19 Thread Patrick Santora
Alan's right. Coldfusion sits on top of the directories, so you can head the user off at the pass before showing off anything that may be within that folder. In your case you may want to consider trapping whether or not the user has access by pushing in some security logic into the onRequestStart

Re: Variable scope

2009-10-19 Thread Alan Rother
Why are you using so many application.cfm files? You really only need one, from what you've described. On Mon, Oct 19, 2009 at 2:34 PM, Brian Bradley wrote: > > In the one off of the root - I name it login_app and it has a session > variable named loggedIn. In the contact folder (for example)

Re: Variable scope

2009-10-19 Thread Brian Bradley
In the one off of the root - I name it login_app and it has a session variable named loggedIn. In the contact folder (for example) the name of that application is contact_app and it is looking for the loggedIn variable. If loggedIn exists, it lets the user access the pages in that directory,

Re: Variable scope

2009-10-19 Thread Patrick Santora
Does each folder have a different application scope? If so, then unless each application scope has the same name then different session containers will be used within each application. Can you supply us with some more clarity about your setup on a per application level? -Pat On Mon, Oct 19, 2009

Variable scope

2009-10-19 Thread Brian Bradley
I am writing a security structure and have a session variable that is being set basically saying loggedIn="y" at the root of the site. In subfolders I have other application files looking for that variable but not able to find it. I know that I can write a cookie but was wondering if anyone h

RE: Can't access variable scope in cfc?

2008-07-01 Thread Dave Watts
> > > returnvariable="getWebCartDetails"> > > > > > > Here you invoked the CFC and dropped it into the Application scope > > When you use CFINVOKE, you are re-instantiating the CFC, thus > killing the one you already had open. This is not correct. If you use CFINVOKE and set the COMPO

Re: Can't access variable scope in cfc?

2008-07-01 Thread Ian Rutherford
Okay, I figured it out. I was calling the cfc directly instead of the one in the Application Scope from another page which was really throwing the error. I am pretty sure that the cfinvoke tag does not create a new copy of the object. ~~~

Re: Can't access variable scope in cfc?

2008-07-01 Thread Ian Rutherford
Just in case, I tried your code and am getting the same error. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive:

Re: Can't access variable scope in cfc?

2008-07-01 Thread Ian Rutherford
I was wondering if that was the case. If that's true, then the cf docs seem to be wrong: http://livedocs.adobe.com/coldfusion/8/htmldocs/buildingComponents_16.html They say that cfinvoke doesn't recreate the object, it only calls it.

Re: Can't access variable scope in cfc?

2008-07-01 Thread Alan Rother
Real simple. Here you invoked the CFC and dropped it into the Application scope When you use CFINVOKE, you are re-instantiating the CFC, thus killing the one you already had open. Don't use CFINVOKE do this instead variables.args=StructNew(); variables.args.UserID

Re: Can't access variable scope in cfc?

2008-07-01 Thread Ian Rutherford
Oh, here is the call I'm making which appears to be calling the correct cfc ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;20374

Can't access variable scope in cfc?

2008-07-01 Thread Ian Rutherford
I'm trying to play nice with OOP and CFCs and using init methods to start them up but am running into a crazy problem that must have a simple fix. I instantiate the cfc in the application scope: In the init method I have the following:

Re: proper variable scope conversion

2006-12-01 Thread Brent Nicholas
Barney - Ok, great. Thanks for your time, I appreciate it. BN >If you need to have variables shared between requests from the same >person, the session scope is probably your best bet. If that's not >appropriate for whatever reason, you're stuck doing some kind of >copying operations. The lat

Re: proper variable scope conversion

2006-12-01 Thread Barney Boisvert
If you need to have variables shared between requests from the same person, the session scope is probably your best bet. If that's not appropriate for whatever reason, you're stuck doing some kind of copying operations. The latter's not necessarily a bad solution, just has certain drawbacks. At

Re: proper variable scope conversion

2006-12-01 Thread Brent Nicholas
Barney - Thanks for your reply. I kind of felt I was doing something a bit 'off'. How would you approach this situation where you need your vars to be avaliable in your Application.cfc and template.cfm's and be able to pass them around page to page? I'm ashamed to say I've never done much scop

Re: proper variable scope conversion

2006-12-01 Thread Barney Boisvert
You can do this: structAppend(request, url, "false"); structAppend(request, form, "false"); to move everything from URL and FORM into the request scope if you'd like. Of course, that devalues the request scope to a fair degree. cheers, barneyb On 12/1/06, Brent Nicholas <[EMAIL PROTECTED]> wro

proper variable scope conversion

2006-12-01 Thread Brent Nicholas
howdy all - I've got a question about scoping with the 'request' scope. But I suppose it can be applied to conversion of any scope. In the app I have a series of var's that will need to be used in templates, CFC's (user defined and Application.cfc)and custom tags. The var's are all in the 're

Re: Variable scope

2005-07-29 Thread Matt Robertson
I would use a cookie, personally. But only because I would want to remember the visitor's response across sessions. Session vars should be just fine in terms of reliability, although you need to remember and use proper locking techniques, especially in CF5. A minor issue (maybe) is that session

Variable scope

2005-07-29 Thread Ken
Hi. I am working on CF 5.0 (Enterprise Ed). My site has a Flash based header, and the same header is also available as Non-Flash (jpg file). I want the visitors to choose Flash/Non-Flash site. My idea is to set a variable if they click Non-flash, and check if the variable exists for that session, a

Why are we here? was RE: What is the best variable scope?

2002-06-30 Thread Mike Brunt
NET Work" -Original Message- From: David Schmidt [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 30, 2002 9:16 AM To: CF-Talk Subject: Re: What is the best variable scope? No offense guys, but shouldn't this be a private discussion by now? I don't recall debates as being th

Re: What is the best variable scope?

2002-06-30 Thread S . Isaac Dealey
> No offense guys, but shouldn't this be a private discussion by now? > I don't recall debates as being the purpose of the list. Sorry... Guess I didn't realize anyone else was still following the thread... I'll shut up now... Isaac www.turnkey.to 954-776-0046 _

Re: What is the best variable scope?

2002-06-30 Thread David Schmidt
30, 2002 9:00 AM Subject: RE: What is the best variable scope? : > Nice wording, but still what does that have to do with the : > original thread? : : So now you're complaining because I didn't change the subject line? .. : : It was about the comment that Application variables don&#

RE: What is the best variable scope?

2002-06-30 Thread S . Isaac Dealey
Isaac Dealey [mailto:[EMAIL PROTECTED]] > Sent: Sunday, 30 June 2002 12:52 AM > To: CF-Talk > Subject: RE: What is the best variable scope? > >> Exactly my point, and as the user is not reading these >> emails then why make that a point when you and I both >> know otherwi

RE: What is the best variable scope?

2002-06-29 Thread Andrew Scott
Nice wording, but still what does that have to do with the original thread? -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Sunday, 30 June 2002 12:52 AM To: CF-Talk Subject: RE: What is the best variable scope? > Exactly my point, and as the user is

RE: What is the best variable scope?

2002-06-29 Thread S . Isaac Dealey
> Exactly my point, and as the user is not reading these > emails then why make that a point when you and I both > know otherwise :-) Because it's important for us to think about the work that we do from the perspective of our users -- as entertaining as our tech-centric ways of thinking may be,

RE: What is the best variable scope?

2002-06-29 Thread Andrew Scott
Exactly my point, and as the user is not reading these emails then why make that a point when you and I both know otherwise :-) -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Saturday, 29 June 2002 8:44 AM To: CF-Talk Subject: RE: What is the best variable

RE: What is the best variable scope?

2002-06-28 Thread Adrian Lynch
SO anyway, how about those Knicks :OP Ade (Not American :O) -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: 28 June 2002 02:14 To: CF-Talk Subject: RE: What is the best variable scope? > Where the hell did you get the idea that I seem to think > th

RE: What is the best variable scope?

2002-06-27 Thread S . Isaac Dealey
> Where the hell did you get the idea that I seem to think > that the application scope is across websites? I didn't -- I was quoting _your_ answer to someone else entirely... You responded to their message with "You seem to think application is across websites, this is not true." ... and I was p

RE: What is the best variable scope?

2002-06-27 Thread Andrew Scott
op it mate, you'll loose this. -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Friday, 28 June 2002 10:17 AM To: CF-Talk Subject: RE: What is the best variable scope? Actually I was getting back to the original point, which had nothing to do with my applica

RE: What is the best variable scope?

2002-06-27 Thread S . Isaac Dealey
> You can defend the idea of you application as one or not, > that is your choice. The issue is not whether or not you > applications is one site or not, and you have taken this > past the original discussion. Actually I was getting back to the original point, which had nothing to do with my appl

RE: What is the best variable scope?

2002-06-27 Thread Andrew Scott
June 2002 8:49 AM To: CF-Talk Subject: RE: What is the best variable scope? > All I am saying is that the application is sharing all the > code, hence it is one application that pretends to many > websites. As far as I am concerned I will always treat it > as one app, and not 2 if there

RE: What is the best variable scope?

2002-06-27 Thread S . Isaac Dealey
> All I am saying is that the application is sharing all the > code, hence it is one application that pretends to many > websites. As far as I am concerned I will always treat it > as one app, and not 2 if there are 2 sites. > Hope that makes sense:-) I tend to think of sites in the terms that v

RE: What is the best variable scope?

2002-06-27 Thread Mark A. Kruger - CFG
for cfinclude is very minimal - and the benefits outwiegh it considerably. -mk -Original Message- From: Brad Roberts [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 9:47 AM To: CF-Talk Subject: RE: What is the best variable scope? I'm no expert on how CF handles files, but w

RE: What is the best variable scope?

2002-06-27 Thread Brad Roberts
Message- > From: Andrew Scott [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 27, 2002 9:57 AM > To: CF-Talk > Subject: RE: What is the best variable scope? > > > Here is something to ponder:-) > > Although it might not be an issue to some of you, but look at it t

RE: What is the best variable scope?

2002-06-27 Thread Andrew Scott
ht to your application. -Original Message- From: Jeffry Houser [mailto:[EMAIL PROTECTED]] Sent: Thursday, 27 June 2002 11:23 PM To: CF-Talk Subject: RE: What is the best variable scope? Do you have examples and / or numbers? At 06:50 AM 6/27/2002 +, you wrote: >While I agree in p

RE: What is the best variable scope?

2002-06-27 Thread Andrew Scott
e can bring a servers performance to a critical level. Might not sound like it is a big deal, but can be when the time comes:-) -Original Message- From: Bud [mailto:[EMAIL PROTECTED]] Sent: Thursday, 27 June 2002 12:36 PM To: CF-Talk Subject: Re: What is the best variable scope? On 6/

RE: What is the best variable scope?

2002-06-27 Thread Andrew Scott
that makes sense:-) -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]] Sent: Thursday, 27 June 2002 11:46 AM To: CF-Talk Subject: RE: What is the best variable scope? > Ok that goes without saying, but in hindsight this is one > application pretending to be many

RE: What is the best variable scope?

2002-06-27 Thread Andrew Scott
Jeffry, Read what I said, and I stand by that post! -Original Message- From: Jeffry Houser [mailto:[EMAIL PROTECTED]] Sent: Thursday, 27 June 2002 10:22 AM To: CF-Talk Subject: RE: What is the best variable scope? At 07:55 AM 6/27/2002 +1000, you wrote: >Actually I prefer to look

Re: RE: What is the best variable scope?

2002-06-27 Thread Dave Carabetta
>Can you give some example code? I just want to make sure I understand you >completely. It's not a very hard concept. I create a file called constants.cfm, put it in the same directory as my Application.cfm file, and then cfinclude it in the Application.cfm file, so that it is included on ever

RE: What is the best variable scope?

2002-06-27 Thread Jeffry Houser
Do you have examples and / or numbers? At 06:50 AM 6/27/2002 +, you wrote: >While I agree in principle with your sentiments here, the request scope can >help out in some cases with performance. > > > > > > Actually, I prefer not to use the request variable scope.

RE: What is the best variable scope?

2002-06-27 Thread Jeffry Houser
At 06:53 AM 6/27/2002 +, you wrote: > > > > However, many people use the application scope for things that I > >don't > > > > consider good ideas (such as a datasource varaible). > > > > > >Can you elaborate? > > > > In the example I specified, a datasource variable. > > > > First you ha

RE: What is the best variable scope?

2002-06-26 Thread mark brinkworth
While I agree in principle with your sentiments here, the request scope can help out in some cases with performance. > > Actually, I prefer not to use the request variable scope. > Parameter passing is important part of custom tag re-usability. Writing >custom tags that

RE: What is the best variable scope?

2002-06-26 Thread mark brinkworth
> > > However, many people use the application scope for things that I >don't > > > consider good ideas (such as a datasource varaible). > > > >Can you elaborate? > > In the example I specified, a datasource variable. > > First you have to put it into an application variable, so code simila

Re: What is the best variable scope?

2002-06-26 Thread Bud
On 6/26/02, Dave Carabetta penned: >Without belaboring this thread, pre-MX, I don't advocate >using shared-scope varaibles such as the application scope for these sorts >of variables. Period. Exactly. I never did see any reason to store a datasource name, or anything that you have to actually ty

Re: What is the best variable scope?

2002-06-26 Thread Jeffry Houser
At 10:08 PM 6/26/2002 -0400, you wrote: > > My understanding of your words was that storing the datasource in an > > application variable is good because you can copy it into the local scope > > and avoid locking. That is a resolution of the problem, but does not > > address the issue of using

Re: What is the best variable scope?

2002-06-26 Thread Dave Carabetta
> My understanding of your words was that storing the datasource in an > application variable is good because you can copy it into the local scope > and avoid locking. That is a resolution of the problem, but does not > address the issue of using an application variable to store the > datasourc

RE: What is the best variable scope?

2002-06-26 Thread S . Isaac Dealey
> Ok that goes without saying, but in hindsight this is one > application pretending to be many It's not really pretending... It is actually doing the job -- the structure of the application helps to prevent namespace conflicts by isolating most of the data elements across different websites by d

Re: What is the best variable scope?

2002-06-26 Thread Jeffry Houser
At 08:10 PM 6/26/2002 -0400, you wrote: > >It is a documented best practice, and many will attest to the >experience. > >If you copy the variable to the local scope (as you suggest) you do not > > have to lock the local variable. However, why are you storing the >variable > > in the appli

Re: What is the best variable scope?

2002-06-26 Thread Dave Carabetta
>It is a documented best practice, and many will attest to the experience. >If you copy the variable to the local scope (as you suggest) you do not > have to lock the local variable. However, why are you storing the variable > in the application scope if you are going to copy it into the

RE: What is the best variable scope?

2002-06-26 Thread Andrew Scott
2002 8:53 AM To: CF-Talk Subject: RE: What is the best variable scope? > You seem to think application is across websites, this is > not true. It is not necessarily true, but it can be... My CMS allows multiple websites with different domain names to be hosted in the same root directory

RE: What is the best variable scope?

2002-06-26 Thread S . Isaac Dealey
> You seem to think application is across websites, this is > not true. It is not necessarily true, but it can be... My CMS allows multiple websites with different domain names to be hosted in the same root directory -- all using a single application.cfm with a single tag and the name="" attribu

RE: What is the best variable scope?

2002-06-26 Thread Andrew Scott
You seem to think application is across websites, this is not true. -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: Thursday, 27 June 2002 2:24 AM To: CF-Talk Subject: RE: What is the best variable scope? they do - but what happens if your CF server is serving

RE: What is the best variable scope?

2002-06-26 Thread Andrew Scott
scope? Actually, I prefer not to use the request variable scope. Parameter passing is important part of custom tag re-usability. Writing custom tags that are based on 'global' variables (I.E. the request scope is global to the current request) violates the re-usability constraint.

RE: What is the best variable scope?

2002-06-26 Thread Andrew Scott
But not all users!! -Original Message- From: Stover, John [mailto:[EMAIL PROTECTED]] Sent: Thursday, 27 June 2002 12:39 AM To: CF-Talk Subject: RE: What is the best variable scope? Jeffry, You may want to try using the REQUEST variable scope, as it is available to all referenced pages

Re: What is the best variable scope?

2002-06-26 Thread Jeffry Houser
plate for that >matter. > >FWIW, >Seth Yes, but is it truely adding a variable to the scope? Or is it just creating a local variable named "attributes.myvar"? ( Anyone, anyone, Ray?) I just tested in CFMX, and I saw the actions I expected to see. A structure named A

Re: What is the best variable scope?

2002-06-26 Thread Seth Petry-Johnson
> Theoretically, the attributes scope is only available in custom tags. > However, if in the application.cfm you create a variable like this: > > > > I am not sure how ColdFusion reacts. I haven't worked with anything later than CF 4.51 yet, but in both 4.0 and 4.5 you can use the Attribut

Re: RE: What is the best variable scope?

2002-06-26 Thread Thane Sherrington
At 01:22 PM 6/26/02 -0400, Dave Carabetta wrote: >That's exactly what I do. I have a constants file that I include in my >Application.cfm file and then just reference them. The overhead of creating >them on each request (and yes, I have stress tested this!) is so minimal >that it's worth it to me.

RE: What is the best variable scope?

2002-06-26 Thread Jeffry Houser
Theoretically, the attributes scope is only available in custom tags. However, if in the application.cfm you create a variable like this: I am not sure how ColdFusion reacts. I suspect you are creating a structure in the variables scope with the name attributes and a single key called

Re: RE: What is the best variable scope?

2002-06-26 Thread Dave Carabetta
>Then the question becomes, why even bother scoping the dsName to >application. Why not just set variables.dsName in application.cfm? That's exactly what I do. I have a constants file that I include in my Application.cfm file and then just reference them. The overhead of creating them on each

RE: What is the best variable scope?

2002-06-26 Thread Bud
While we're on the subject of variables, is there an inherent difference between the attributes scope and the variables scope? Other than the fact that attributes are created automatically when passing a value through a custom tag reference, is there a difference? Does it mater if I use attrib

RE: What is the best variable scope?

2002-06-26 Thread Jeffry Houser
TECTED]] >Sent: 26 June 2002 17:15 >To: CF-Talk >Subject: RE: What is the best variable scope? > > >AFAIK you have to lock application variables. (plus others!) > > > > > > > > > > > > > >-Original Message- >From: Shawn Regan

RE: What is the best variable scope?

2002-06-26 Thread Jeffry Houser
At 12:17 PM 6/26/2002 -0400, you wrote: > > First you have to put it into an application variable, so code similar >to > > this goes into the Application.cfm : > > > > > > > > > > > > > > > > > > Now you have to lock all your query statements every time you reference >

RE: What is the best variable scope?

2002-06-26 Thread Andy Ewings
but they persist across requests - hence the need for locking -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED]] Sent: 26 June 2002 17:31 To: CF-Talk Subject: RE: What is the best variable scope? I don't think that would matter, wouldn't they be unique to each A

RE: What is the best variable scope?

2002-06-26 Thread Alex Hubner
ot of CFMODULE and also Custom Tags. Thanks all! Alex -Original Message- From: Andrew Scott [mailto:[EMAIL PROTECTED]] Sent: quarta-feira, 26 de junho de 2002 11:36 To: CF-Talk Subject: RE: What is the best variable scope? Shared variables such as application and session should be locked, ho

RE: What is the best variable scope?

2002-06-26 Thread Adrian Lynch
I don't think that would matter, wouldn't they be unique to each Application. -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: 26 June 2002 17:25 To: CF-Talk Subject: RE: What is the best variable scope? Sorry, that should have said "Applica

RE: What is the best variable scope?

2002-06-26 Thread Andy Ewings
Sorry, that should have said "Application.DSN" - not "Application's" -Original Message- From: Andy Ewings Sent: 26 June 2002 17:24 To: '[EMAIL PROTECTED]' Subject: RE: What is the best variable scope? they do - but what happens if your CF server is

RE: What is the best variable scope?

2002-06-26 Thread Andy Ewings
s the best variable scope? AFAIK you have to lock application variables. (plus others!) -Original Message- From: Shawn Regan [mailto:[EMAIL PROTECTED]] Sent: 26 June 2002 16:33 To: CF-Talk Subject: RE: What is the best variable scope? I usually only use the application scop

Re: RE: What is the best variable scope?

2002-06-26 Thread ksuh
Then the question becomes, why even bother scoping the dsName to application. Why not just set variables.dsName in application.cfm? - Original Message - From: Dave Carabetta <[EMAIL PROTECTED]> Date: Wednesday, June 26, 2002 10:17 am Subject: RE: What is the best variable

RE: What is the best variable scope?

2002-06-26 Thread Neil Clark - =TMM=
o: CF-Talk Subject: RE: What is the best variable scope? I usually only use the application scope for set variables that do not change. So there are only being read, Maybe I will look at locking those too, since two people could read the same variable at the same time. But I don't see any pr

RE: What is the best variable scope?

2002-06-26 Thread Neil Clark - =TMM=
AFAIK you have to lock application variables. (plus others!) -Original Message- From: Shawn Regan [mailto:[EMAIL PROTECTED]] Sent: 26 June 2002 16:33 To: CF-Talk Subject: RE: What is the best variable scope? I usually only use the application scope for set variables

RE: What is the best variable scope?

2002-06-26 Thread Dave Carabetta
> First you have to put it into an application variable, so code similar to > this goes into the Application.cfm : > > > > > > > > > Now you have to lock all your query statements every time you reference > the variable: > > > > > > > > >In this c

RE: What is the best variable scope?

2002-06-26 Thread Jeffry Houser
h this method. > >But there are many reasons why one should use application scope >variables, for example to determine how many people are actually logged >into a membership system as a good example. > > > >-Original Message- >From: Shawn Regan [mailto:[EMAIL PROTE

RE: What is the best variable scope?

2002-06-26 Thread Jeffry Houser
Actually, I prefer not to use the request variable scope. Parameter passing is important part of custom tag re-usability. Writing custom tags that are based on 'global' variables (I.E. the request scope is global to the current request) violates the re-usability constraint.

RE: What is the best variable scope?

2002-06-26 Thread Stover, John
Jeffry, You may want to try using the REQUEST variable scope, as it is available to all referenced pages (using includes, custom tags, etc.). However, as far as "the best" variable scope. each has strengths and weaknesses. Please let me know if I can be of assistance. Thank yo

RE: What is the best variable scope?

2002-06-26 Thread Andrew Scott
June 2002 12:18 AM To: CF-Talk Subject: RE: What is the best variable scope? Why do you need to lock it? Shawn Regan __ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinf

RE: What is the best variable scope?

2002-06-26 Thread Jeffry Houser
See my other post. ;) At 07:18 AM 6/26/2002 -0700, you wrote: >Why do you need to lock it? > >Shawn Regan > >-Original Message- >From: Jeffry Houser [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, June 26, 2002 6:24 AM >To: CF-Talk >Subject: RE: What is the best

RE: What is the best variable scope?

2002-06-26 Thread Andrew Scott
-Talk Subject: RE: What is the best variable scope? > However, many people use the application scope for things that I don't > consider good ideas (such as a datasource varaible). Can you elaborate? Tony Schreiber, Senior Partner Man and Machine, Limited mailto:[EMAI

RE: What is the best variable scope?

2002-06-26 Thread Jeffry Houser
Application scope variables are a shared scope. You should always lock shared scopes (I.E. Session, Application, and Server) variables. In version of ColdFusion 5 or less, this will prevent memory corruption and server crashes. In ColdFusion MX, Macromedia fixed the problems with memory c

RE: What is the best variable scope?

2002-06-26 Thread Shawn Regan
Why do you need to lock it? Shawn Regan -Original Message- From: Jeffry Houser [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 6:24 AM To: CF-Talk Subject: RE: What is the best variable scope? At 03:18 AM 6/26/2002 -0400, you wrote: > > However, many people u

RE: What is the best variable scope?

2002-06-26 Thread Jeffry Houser
At 03:18 AM 6/26/2002 -0400, you wrote: > > However, many people use the application scope for things that I don't > > consider good ideas (such as a datasource varaible). > >Can you elaborate? In the example I specified, a datasource variable. First you have to put it into an application

RE: What is the best variable scope?

2002-06-26 Thread Tony Schreiber
> However, many people use the application scope for things that I don't > consider good ideas (such as a datasource varaible). Can you elaborate? Tony Schreiber, Senior Partner Man and Machine, Limited mailto:[EMAIL PROTECTED] http://www.technocraft.com htt

RE: What is the best variable scope?

2002-06-25 Thread Jeffry Houser
At 04:31 PM 6/25/2002 -0400, you wrote: >Dear friends, > >Sorry for this stupid question but I really didn't find a consensus on >that. What is the best variable scope to be used on applications (not >using Fusebox or any other methodology) that need to be present on every &g

RE: What is the best variable scope?

2002-06-25 Thread Ken Beard
i concur, the request scope is best for variables like dsn that will not change from page to page. ken beard tampa,fl -Original Message- From: Douglas Brown [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 25, 2002 4:34 PM To: CF-Talk Subject: Re: What is the best variable scope? I

RE: What is the best variable scope?

2002-06-25 Thread Chris Lofback
y, June 25, 2002 4:30 PM To: CF-Talk Subject: What is the best variable scope? Dear friends, Sorry for this stupid question but I really didn't find a consensus on that. What is the best variable scope to be used on applications (not using Fusebox or any other methodology) that need to be p

Re: What is the best variable scope?

2002-06-25 Thread Douglas Brown
I prefer doing like so blah blah blah Douglas Brown Email: [EMAIL PROTECTED] - Original Message - From: "Alex Hubner" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, June 25, 2002 1:29 PM Subject: What is the best variable sc

What is the best variable scope?

2002-06-25 Thread Alex Hubner
Dear friends, Sorry for this stupid question but I really didn't find a consensus on that. What is the best variable scope to be used on applications (not using Fusebox or any other methodology) that need to be present on every template. Variables that we can use in the Application.cfm to

RE: Variable scope for structures passed between templates

2001-08-22 Thread Aidan Whitehall
> TemplateB creates a structure with 2 keys: >variables.Opening.Value >variables.Opening.String > > and returns it to TemplateA with > > [ snip ] In case you were wondering... In TemplateB, you can use CFSET to refer directly to the values within a structure, but once it was passed

Variable scope for structures passed between templates

2001-08-22 Thread Aidan Whitehall
TemplateB creates a structure with 2 keys: variables.Opening.Value variables.Opening.String and returns it to TemplateA with In TemplateA, I'm trying to assign the two values returned with this: The first line throws this error: Error resolving parameter VARIABLES.OPENING.V

RE: Order of variable scope checking

2000-11-25 Thread aidan . whitehall
> This is the order in which CF evaluates variables if they > aren't scoped. > > 1. Local vars created using CFSET and CFQUERY > 2. CGI vars > 3. File vars > 4. URL vars > 5. Form > 6. Cookies > 7. Client I thought the query scope was a scope in it's own right. Are they really just local

Re: Order of variable scope checking

2000-11-20 Thread Michael Dinowitz
vars > 4. URL vars > 5. Form > 6. Cookies > 7. Client > > -Phoeun > > > > > -Original Message- > From: J.Milks [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 20, 2000 9:39 AM > To: CF-Talk > Subject: Order of variable

RE: Order of variable scope checking

2000-11-20 Thread Phoeun Pha
ember 20, 2000 9:39 AM To: CF-Talk Subject: Order of variable scope checking This is a multi-part message in MIME format. --=_NextPart_000_0190_01C052DE.297191E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, I once re

Order of variable scope checking

2000-11-20 Thread J.Milks
This is a multi-part message in MIME format. --=_NextPart_000_0190_01C052DE.297191E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, I once read the order in which CF evaluates variables if they are not = scoped. Can someone refresh

Re: Variable Scope??

2000-05-19 Thread Rey Bango
rt, is its usefulness as a *TOOL*." - Original Message - From: "Troy Johnson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 19, 2000 11:03 AM Subject: RE: Variable Scope?? > Brings up an interesting point. During my tenure of client-server >

  1   2   >