RE: Application CFC and the URL.
You would check for its existence in, say, onRequestStart, then call the appropriate function. Presumably, you want to reinitialize your application? You can invoke onApplicationStart from within onRequestStart. Not the whole application, just one variable. I created a function that initilizes this variable and call it from onApplicationStart. So yes, I would want to also call it in onRequestStart if there is URL variable saying to do so. -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252289 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Application CFC and the URL.
I use URL in onRequestStart() for an affiliate tracking program. Works fine. Will ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252285 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Application CFC and the URL.
> Which events in the application.cfc framework, if any, would > have access to URL variables? I would guess: onRequestStart, onRequestEnd, and onRequest. > In more specific terms, if I wanted to have an > application.cfc function called based on the existence and|or > value of a url variable, how could I do this? You would check for its existence in, say, onRequestStart, then call the appropriate function. Presumably, you want to reinitialize your application? You can invoke onApplicationStart from within onRequestStart. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252275 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Application CFC and the URL.
Depends on when you want the code to execute. If it is a URL variable, you probably want it onRequestStart. On 9/6/06, Ben Nadel <[EMAIL PROTECTED]> wrote: > I use the CGI and URL values in my OnApplicationStart() method with no > problems ( I think ). Although an also initialize outside of on > applicationStart method... So not sure. All I know is the site works. > > ... > Ben Nadel > www.bennadel.com > Certified Advanced ColdFusion Developer > > Need Help? > www.bennadel.com/ask-ben/ > > -Original Message- > From: Ian Skinner [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 06, 2006 3:37 PM > To: CF-Talk > Subject: Application CFC and the URL. > > Which events in the application.cfc framework, if any, would have access to > URL variables? > > In more specific terms, if I wanted to have an application.cfc function > called based on the existence and|or value of a url variable, how could I do > this? > > > -- > Ian Skinner > Web Programmer > BloodSource > www.BloodSource.org > Sacramento, CA > > - > | 1 | | > - Binary Soduko > | | | > - > > "C code. C code run. Run code run. Please!" > - Cynthia Dunning > > Confidentiality Notice: This message including any attachments is for the > sole use of the intended > recipient(s) and may contain confidential and privileged information. Any > unauthorized review, use, disclosure or distribution is prohibited. If you > are not the intended recipient, please contact the sender and delete any > copies of this message. > > > > > > ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252266 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Application CFC and the URL.
I use the CGI and URL values in my OnApplicationStart() method with no problems ( I think ). Although an also initialize outside of on applicationStart method... So not sure. All I know is the site works. ... Ben Nadel www.bennadel.com Certified Advanced ColdFusion Developer Need Help? www.bennadel.com/ask-ben/ -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 06, 2006 3:37 PM To: CF-Talk Subject: Application CFC and the URL. Which events in the application.cfc framework, if any, would have access to URL variables? In more specific terms, if I wanted to have an application.cfc function called based on the existence and|or value of a url variable, how could I do this? -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252263 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Application CFC and the URL.
Which events in the application.cfc framework, if any, would have access to URL variables? In more specific terms, if I wanted to have an application.cfc function called based on the existence and|or value of a url variable, how could I do this? -- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA - | 1 | | - Binary Soduko | | | - "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:252262 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4