At 11:02 PM 3/22/01 -0500, you wrote:
>So we end up with a structure, FBVars, that does what Hal wants (combines all
>the url and form variables in a single structure which you can loop over, and
>isn't a fake copy of the attributes scope). The only question left in my
>mind
>is whether it's worth bringing in genuine attribute-scoped variables as
>well.
>The only case where you would need this is if you were going to call the
>app as
>a custom tag, and I think we're finding that case to be quite uncommon.
here are three thoughts i have on the matter. sorry if they've already
been stated 100 times.
1. i added a caller.attributes=structnew() line to my formurl2attributes to
make the "fake copy" a little less fake.
<cfif not isdefined("caller.attributes.fuseaction")>
<cfset caller.attributes=structnew()>
(if ends after the copying code, since i don't want to copy the url/form
vars in the case of cfmoduling my app.. cuz then i get the combination of
the incoming variables from both requests, since the url/form variables are
still visible.)
2. you could check if the attributes scope is defined.. and if not, don't
try to copy any in. how much extra processing would one isdefined function be?
3. I do cfmodule my application. i have a set of parent/child custom tags
that handle my server-side form validation and when the validation fails,
the parent tag cfmodules the application and sends and error message, as
well as all the variables that were passed through (using the
attributecollection, if anyone cares) and then cfaborts. I am also doing
this when the login/password are found to be incorrect.. and am thinking
about doing it when a search returns no records.. so the user will still
have their search conditions and can just modify them and try again. I
prefer this to a cflocation with the urlencodedformat() function, plus i
think users prefer not to see the contents of a form on the url (along with
a message). Warning - I have not given this serious performance testing.
Ken Beard
Manager, Application Development
Stone Ground Solutions
5100 West Kennedy Blvd, Suite 430
Tampa FL 33602
813.387.1235 voice
866.767.4051 toll free
813.387.1237 fax
www.stoneground.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists