[cfaussie] Re: Includes

2006-07-02 Thread Dale Fraser
2006 09:58 AM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Includes   Doesn't work for me.   Variable MAXFUNC is undefined.   Tom   On 6/30/06, Max <[EMAIL PROTECTED]> wrote: Dale Fraser wrote: > Yep I saw it to which lead me to conclude t

[cfaussie] Re: Includes

2006-07-02 Thread Robin Hilliard
On 03/07/2006, at 12:51 PM, Steve Onnis wrote: > > um > isnt that what Robin posted like 4 days ago? I was also injecting the function into the variables scope, cool if it works without having to do that. Mind you, as with the stuff I posted it only works in the included target page, not an

[cfaussie] Re: Includes

2006-07-02 Thread Dale Fraser
Are you doing the include bit in OnRequest that people are talking about? Regards Dale Fraser -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Maximilian Nyman Sent: Monday, 3 July 2006 12:42 PM To: cfaussie Subject: [cfaussie] Re: Includes

[cfaussie] Re: Includes

2006-07-02 Thread Steve Onnis
um isnt that what Robin posted like 4 days ago? -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] Behalf Of Maximilian Nyman Sent: Monday, July 03, 2006 12:42 PM To: cfaussie Subject: [cfaussie] Re: Includes Within /Max Dale Fraser wrote: > Within

[cfaussie] Re: Includes

2006-07-02 Thread Maximilian Nyman
Within /Max Dale Fraser wrote: > Within the > Regards > Dale Fraser > > > > -Original Message- > From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > Of Mike Kear > Sent: Monday, 3 July 2006 11:26 AM > To: cfaussie@googlegroups.com &

[cfaussie] Re: Includes

2006-07-02 Thread Dale Fraser
Within the mailto:[EMAIL PROTECTED] On Behalf Of Mike Kear Sent: Monday, 3 July 2006 11:26 AM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Includes I have functions in Application.cfc that are outside the normal methods. i.e. not inside onRequestStart or onApplicationStart etc It

[cfaussie] Re: Includes

2006-07-02 Thread Tom MacKean
Yes. That made it work. Cool.   Tom  On 7/3/06, Maximilian Nyman <[EMAIL PROTECTED]> wrote: Ok, here is the answer (which I just figured out with some oldfashioned trail-and-error)If you want your custom functions in Application.cfc to be accessablein your cfm pages you have to include the onReque

[cfaussie] Re: Includes

2006-07-02 Thread Dale Fraser
Yes,   Tried it and it doesn’t work. Regards Dale Fraser From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Tom MacKean Sent: Monday, 3 July 2006 10:18 AM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Includes   I just cut and

[cfaussie] Re: Includes

2006-07-02 Thread Maximilian Nyman
Ok, here is the answer (which I just figured out with some old fashioned trail-and-error) If you want your custom functions in Application.cfc to be accessable in your cfm pages you have to include the onRequest method into your Application.cfc

[cfaussie] Re: Includes

2006-07-02 Thread Mike Kear
I have functions in Application.cfc that are outside the normal methods. i.e. not inside onRequestStart or onApplicationStart etc It just includes them as methods just like any other. Tom, are you sure you're not nesting your function inside another method? Cheers Mike Kear Windsor, NSW, Aus

[cfaussie] Re: Includes

2006-07-02 Thread Tom MacKean
I just cut and pasted the code from your post. I added the function after my OnRequestEnd function and put the "Hello Max" code on a test page. The page gives me the grey unexpected error box with Variable MAXFUNC is undefined.   I'm running CFMX 7 on Apache / Windows XP. Maybe it's just me. Has a

[cfaussie] Re: Includes

2006-07-02 Thread Maximilian Nyman
Hmm, that's interesting!?! It works just fine for me. Do you have the actual code (you can send it directly to me if you want), and I'll try to put it on the my server here and just run it without touching the code and lets see if that works. /Max On 7/3/06, Tom MacKean <[EMAIL PROTECTED]> wrot

[cfaussie] Re: Includes

2006-07-02 Thread Tom MacKean
Doesn't work for me.   Variable MAXFUNC is undefined.   Tom  On 6/30/06, Max <[EMAIL PROTECTED]> wrote: Dale Fraser wrote:> Yep I saw it to which lead me to conclude that it cant be done.> >>> Regards> Dale Fraser>On the contrary - Not only could it be done, it's actually quite easy.Just add you fu

[cfaussie] Re: Includes

2006-06-30 Thread Max
Dale Fraser wrote: > Yep I saw it to which lead me to conclude that it cant be done. > > > > Regards > Dale Fraser > On the contrary - Not only could it be done, it's actually quite easy. Just add you function to Application.cfc: Call you function from any .c

[cfaussie] Re: Includes

2006-06-28 Thread Robin Hilliard
Ok, if you meant "automatically have a unscoped function name available to every line of cf code in your application" (like a tag on the custom tag path) then the answer is no, short of doing a JIT- code generator or similar, which I would not call easy. (Or opening up cfusion.jar, somehow r

[cfaussie] Re: Includes

2006-06-28 Thread Dale Fraser
: Thursday, 29 June 2006 15:11 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Includes   No, that's exactly what the code I pasted into this thread 2 hours ago does...   Could someone tell me that they saw that post - I'm beginning to suspect I have a problem posting t

[cfaussie] Re: Includes

2006-06-28 Thread Joel Cass
Yes Robin I got your post   Unfortunately I didn't read yesterdays posts about the original "issue", but in my opinion if you are going to call a function something vague like "tr", you might want to know where it comes from so you don't spend ages trying to figure it out later on when you f

[cfaussie] Re: Includes

2006-06-28 Thread Dale Fraser
Yep I saw it to which lead me to conclude that it cant be done.   Regards Dale Fraser From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robin Hilliard Sent: Thursday, 29 June 2006 15:11 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Includes

[cfaussie] Re: Includes

2006-06-28 Thread Dale Fraser
PROTECTED] On Behalf Of Robin Hilliard - RocketBoots Sent: Thursday, 29 June 2006 15:09 PM To: cfaussie Subject: [cfaussie] Re: Includes ...And actually in the cfadmin code for CFMX they used a custom tag for this - wherever there was something that might need to be substituted with alternate text when

[cfaussie] Re: Includes

2006-06-28 Thread Chris Velevitch
On 6/29/06, Robin Hilliard <[EMAIL PROTECTED]> wrote: > No, that's exactly what the code I pasted into this thread 2 hours ago > does... > > Could someone tell me that they saw that post - I'm beginning to suspect I > have a problem posting to cfaussie. Yes, I saw the post. Chris -- Chris Vele

[cfaussie] Re: Includes

2006-06-28 Thread Robin Hilliard
No, that's exactly what the code I pasted into this thread 2 hours ago does...Could someone tell me that they saw that post - I'm beginning to suspect I have a problem posting to cfaussie.Robin On 29/06/2006, at 3:04 PM, Dale Fraser wrote:Ok, To close this off and not waste eveyone’s time. Is it sa

[cfaussie] Re: Includes

2006-06-28 Thread Robin Hilliard - RocketBoots
...And actually in the cfadmin code for CFMX they used a custom tag for this - wherever there was something that might need to be substituted with alternate text when doing internationalisation they had something like: Welcome to our site Then later when you add the french version you have a con

[cfaussie] Re: Includes

2006-06-28 Thread Dale Fraser
Behalf Of Tom MacKean Sent: Thursday, 29 June 2006 14:41 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Includes   ...and we're back to the start :) On 6/29/06, Joel Cass <[EMAIL PROTECTED]> wrote: Dale all you would need to do is put one line befor

[cfaussie] Re: Includes

2006-06-28 Thread Dale Fraser
Joel, I realise that but how is that better then just having a mailto:[EMAIL PROTECTED] On Behalf Of Joel Cass Sent: Thursday, 29 June 2006 14:40 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Includes Dale all you would need to do is put one line before your code: -Original

[cfaussie] Re: Includes

2006-06-28 Thread Tom MacKean
...and we're back to the start :) On 6/29/06, Joel Cass <[EMAIL PROTECTED]> wrote: Daleall you would need to do is put one line before your code: application.myUdf.tr>-Original Message-From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com ]OnBehalf Of Dale FraserSent: Thursday,

[cfaussie] Re: Includes

2006-06-28 Thread Joel Cass
Dale all you would need to do is put one line before your code: -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] Behalf Of Dale Fraser Sent: Thursday, 29 June 2006 2:20 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Includes Steve, I could

[cfaussie] Re: Includes

2006-06-28 Thread Dale Fraser
Steve, I could have done this just by doing mailto:[EMAIL PROTECTED] On Behalf Of Steve Onnis Sent: Thursday, 29 June 2006 13:50 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Includes ok had a bit of a play this is what i have come up with

[cfaussie] Re: Includes

2006-06-28 Thread Steve Onnis
application.udf.functionName Steve -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] Behalf Of Andrew Scott Sent: Thursday, June 29, 2006 1:15 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Includes Dale, I am not 100% sure but the onRequest might store it in the request

[cfaussie] Re: Includes

2006-06-28 Thread Andrew Scott
Dale Fraser Sent: Thursday, 29 June 2006 1:10 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Includes Yep, We had a reload option in our apps that fire onApplicationStart. I assume this is sufficient, but we did this and it didn't help Regards Dale Fraser -Original Me

[cfaussie] Re: Includes

2006-06-28 Thread Robin Hilliard
In your file: #sayHi()# This only works because we're including the target page, which will then be using the same variables scope we just injected the function into. Because onR

[cfaussie] Re: Includes

2006-06-28 Thread Dale Fraser
2006 13:07 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Includes remember you need to restart the application for it to work -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] Behalf Of Dale Fraser Sent: Thursday, June 29, 2006 12:53 PM To: cfa

[cfaussie] Re: Includes

2006-06-28 Thread Steve Onnis
remember you need to restart the application for it to work -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] Behalf Of Dale Fraser Sent: Thursday, June 29, 2006 12:53 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Includes Steve, Adding the tr

[cfaussie] Re: Includes

2006-06-28 Thread Dale Fraser
Steve, Adding the tr function into application.cfc doesn't work, can't access it as application.tr Chris, Adding it and then doing the mailto:[EMAIL PROTECTED] On Behalf Of Chris Velevitch Sent: Thursday, 29 June 2006 12:34 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Inc

[cfaussie] Re: Includes

2006-06-28 Thread Chris Velevitch
On 6/29/06, Dale Fraser <[EMAIL PROTECTED]> wrote: > Doing an http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---

[cfaussie] Re: Includes

2006-06-28 Thread Steve Onnis
why not just add all the functions into your application.cfc file?   and then just do   application.functionName = functionName   wont that work?   -Original Message-From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Dale FraserSent: Thursday, June 29, 200

[cfaussie] Re: Includes

2006-06-28 Thread Chris Velevitch
On 6/29/06, Dale Fraser <[EMAIL PROTECTED]> wrote: > We use application.cfc, so how can we include a function on every page using > application.cfc model? Try:- in the onRequest method of Application.cfc and have the function included as a function in the Application.cfc Chris -- Chris Vele

[cfaussie] Re: Includes

2006-06-28 Thread Dale Fraser
Tried that,   Doing an Regards Dale Fraser From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Joel Cass Sent: Thursday, 29 June 2006 12:32 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Includes   onRequestStart

[cfaussie] Re: Includes

2006-06-28 Thread Joel Cass
onRequestStart? -Original Message-From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Dale FraserSent: Thursday, 29 June 2006 12:16 PMTo: cfaussie@googlegroups.comSubject: [cfaussie] Includes Kym,   That doesn’t work for us and I just discover

[cfaussie] Re: Includes

2006-06-27 Thread Patrick Branley
Another point to rememberIf you use custom tags called via CFMODULE or their own variables scope!soApplication.cfmindex.cfmmytag.cfm#tr("test")#wont work since the cfmodule creates a unquie variables scope. The solution is to use either 1. Request Scope2. Application Scopeor 3. a CFC instance / str

[cfaussie] Re: Includes

2006-06-27 Thread Kym Kovan
Hi Dale, butting in on this... Dale Fraser wrote: When you say "write Are you sure? We do it and Mathew does it, everyone does it! :-) Put the in it and you should see the functions there. I just did it on a page I am working on and saw this, in part with various loose items, from th

[cfaussie] Re: Includes

2006-06-27 Thread Dale Fraser
Language Translation > -Original Message- > From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Chris Velevitch > Sent: Tuesday, 27 June 2006 7:12 PM > To: cfaussie@googlegroups.com > Subject: [cfaussie] Re: Includes > > > On 6/27/06, Da

[cfaussie] Re: Includes

2006-06-27 Thread Chris Velevitch
On 6/27/06, Dale Fraser <[EMAIL PROTECTED]> wrote: > We tried that and it didn't work, however we didn't try it with the function > name application. > > Trying to avoid a long function name as we have to wrap it around every > phrase for translation. Are you talking about character or language t

[cfaussie] Re: Includes

2006-06-27 Thread Dale Fraser
.tr("over the lazy dog")#   Regards Dale Fraser   From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Blair McKenzie Sent: Tuesday, 27 June 2006 4:57 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Includes   You could take the next step

[cfaussie] Re: Includes

2006-06-27 Thread Dale Fraser
When you say "write -Original Message- > From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Matthew > Sent: Tuesday, 27 June 2006 4:53 PM > To: cfaussie > Subject: [cfaussie] Re: Includes > > > The best thing would be to create a

[cfaussie] Re: Includes

2006-06-27 Thread Dale Fraser
m [mailto:[EMAIL PROTECTED] On > Behalf Of Chris Velevitch > Sent: Tuesday, 27 June 2006 4:49 PM > To: cfaussie@googlegroups.com > Subject: [cfaussie] Re: Includes > > > So you're saying, putting the following code into the Application.cfm > or Application.cfc >

[cfaussie] Re: Includes

2006-06-27 Thread Blair McKenzie
You could take the next step with this by turning UDF into a component and putting it in application scope. Define it once then access it everywhere.BlairOn 6/27/06, Matthew <[EMAIL PROTECTED]> wrote: The best thing would be to create a file called udf.cfm and write. Then every page would have acc

[cfaussie] Re: Includes

2006-06-26 Thread Matthew
The best thing would be to create a file called udf.cfm and write . Then every page would have access to any function on udf.cfm Check your structure. Prove that the udf.cfm file is being included. A good test would be to have a variable e.g. http://groups.google.com/group/cfaussie -~--~-

[cfaussie] Re: Includes

2006-06-26 Thread Andrew Scott
In Coldfusion MX using the modules it has to be every page, sorry to sayJ       Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613  8676 4223 Mobile: 0404 998 273   From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of

[cfaussie] Re: Includes

2006-06-26 Thread Chris Velevitch
So you're saying, putting the following code into the Application.cfm or Application.cfc ... doesn't work? Chris -- Chris Velevitch Manager - Sydney Flash Platform Developers Group www.flashdev.org.au --~--~-~--~~~---~--~~ You received this mes