Sorry. I was having a bit of a mare there! The only thing that you would
need for this to happen is a variable that if it was changed within the page
could call a function at any point. This cannot happen, because all
variables are set at the time of execution (unless you can think of a
workaround).
Effectively, all you need is to put in a load of code if something changes
(maybe you could use error checking to include it with <cftry>).
Paul
> -----Original Message-----
> From: Paul Johnston [mailto:[EMAIL PROTECTED]]
> Sent: 18 October 2000 12:15
> To: CF-Talk
> Subject: Extension to custom functions...
>
>
> Can anyone think of a way of calling custom tags from within functions or
> cfscript?
>
> I think it's possible using a variation of Michael Dinowitz custom
> functions. Just set up a page full of custom tags, and set up a function
> that you pass in various values to and it returns a value. This value is
> then used in a cfswitch to pull in certain cfcase statements.
>
> It's just an idea at the moment, but I think it may work.
>
> Anyone see any deliberate mistakes? The only problem I can see (possibly)
> is how to move from the cfscript/functions to the tag.
>
> ... at this point my mind is going a bit into overdrive ...
>
> This could be got round by creating a temporary file and sticking
> cf code in
> there. The function could then output a variable, which gets written to a
> file, is cfincluded into the page and then it is cold fusion code ...
>
> Maybe I'll try and write something...
>
> Paul
>
>
> ------------------------------------------------------------------
> ------------------------------
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> or send a message with 'unsubscribe' in the body to
> [EMAIL PROTECTED]
>
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]