Oh, there'd still be times when you want to do a <cflocation>.  This is
really intended to be a streamlined and efficient replacement for some
recursive <cfmodule> calls.

One of the big advantages of RunAction() is also its biggest problem, as
Patrick points out, ie RunAction() calls are not encapsulated - they live in
the same variable space as the calling code.

Anyway, hopefully you found your copy of the top secret alpha version.  Let
me know how it goes.

LeeBB

-----Original Message-----
From: David Huyck [mailto:[EMAIL PROTECTED]]

CLICK!!! The light just went on... I think...

When you were talking about validating a person, it made me think of a login
sequence, where person validation is common.  In a login, I will usually
send
the request to a login fuseaction, then redirect the user depending on
whether
they passed a valid login or not.  With a RunAction call, I could do
something
much simpler, and never have to send a redirect header to the browser, ading
to overhead and server processing:

<cfcase value="checkLogin">
    <cfset RunAction(person.validate)>
    <cfif isValid>
        <cfset RunAction(open.sesame)>
    <cfelse>
        <cfset RunAction(person.login)>
    </cfif>
</cfcase>

Am I on the right track?
David Huyck
[EMAIL PROTECTED]



IMPORTANT NOTICE:
This e-mail and any attachment to it is intended only to be read or used by
the named addressee.  It is confidential and may contain legally privileged
information.  No confidentiality or privilege is waived or lost by any
mistaken transmission to you.  If you receive this e-mail in error, please
immediately delete it from your system and notify the sender.  You must not
disclose, copy or use any part of this e-mail if you are not the intended
recipient.  The RTA is not responsible for any unauthorised alterations to
this e-mail or attachment to it.  

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================

Reply via email to