I'm not a big fan of the live docs url rewriting and long urls and so forth...
-----Original Message----- From: Ryan Guill [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 2:42 PM To: CF-Talk Subject: Re: Storing UDF in application scope gosh, does anyone else ever have trouble with sending pages from the livedocs? Lets try this one last time. This is the link i am referring to: http://livedocs.macromedia.com/coldfusion/7/htmldocs/00001016.htm Sorry for spamming the list. On 9/13/05, Ryan Guill <[EMAIL PROTECTED]> wrote: > oops, wrong link, try this one > http://livedocs.macromedia.com/coldfusion/7/htmldocs/00001003.htm > > On 9/13/05, Ryan Guill <[EMAIL PROTECTED]> wrote: > > You may check this page out too, it tells you how to do it and why > > you might want to do it as well, the same as I did. > > > > http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/ > > js/html/wwhelp.htm?href=00000263.htm > > > > On 9/13/05, Alan Rother <[EMAIL PROTECTED]> wrote: > > > If your goal is to be able to use the function on any page in the > > > application you could put it in a file that is then included in > > > the application.cfm. This will make the function available for > > > local use on any page called in the whole application. > > > > > > On 9/13/05, Jim Davis <[EMAIL PROTECTED]> wrote: > > > > > > > > > -----Original Message----- > > > > > From: [EMAIL PROTECTED] > > > > > [mailto:[EMAIL PROTECTED] > > > > > Sent: Tuesday, September 13, 2005 11:40 AM > > > > > To: CF-Talk > > > > > Subject: Storing UDF in application scope > > > > > > > > > > Hi, > > > > > > > > > > I want to store a UDF in the application scope. Anyone know a > > > > > trick to this and/or any issues regarding it? Here's what I > > > > > tried that didn't > > > > > work: > > > > > > > > > > <cfscript> > > > > > function MyFunc() { ...function definition... } </cfscript> > > > > > <CFLOCK SCOPE="application" TYPE="exclusive" TIMEOUT="10"> > > > > > <CFSET application.MyFunc = MyFunc > </CFLOCK> > > > > > > > > It seems like it should work... I'm not sure if it was required > > > > (I forget) but in my code I specify the scope: > > > > > > > > <cfset Request.IndexSelect = Variables.IndexSelect> > > > > > > > > Also, and I doubt this is a problem... but who knows?, I don't > > > > use <CFSCRIPT> but rather <CFFUNCTION>. > > > > > > > > But in general what you have should work. > > > > > > > > Jim Davis > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218098 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54