[thelist] CF: form. Url. Attributes. A better way?

Joshua OIson joshua at alphashop.net
Sun Jan 14 20:40:31 CST 2001

Check out the FormUrl2Attributes tag that is standard with the FuseBox
method at www.fusebox.org.  It does essentially the same thing you are doing
manually, except that it does it for EVERY variable.  My partners and I have
been using a derivative of it for some time and it works well for us.  It
doesn't make any noticeable slowdown.

Good luck,


----- Original Message -----
From: "Frank" <framar at interlog.com>
To: <thelist at lists.evolt.org>
Sent: Sunday, January 14, 2001 5:04 PM
Subject: [thelist] CF: form. Url. Attributes. A better way?

> I'm trying to create scheme where everything is pretty modular,
> almost object oriented. I break my queries apart from the logic, so
> that any number of display modules can call to them. What I tend to
> end up doing it this:
> <cfif IsDefined("URL.ID")>
>     <cfset TheID = "#URL.ID#">
> <cfelsif IsDefined("Form.ID")>
>     <cfset TheID = "#Form.ID#">
> <cfelseif IsDefined("Attributes.ID")>
>     <cfset TheID = "#Attributes.ID#">
> </cfif>
> Use: #TheID#
> This seems rather clumsy to me. Does anyone have a better of getting
> the correct scope for a variable without having to redefine them each
> time on every query?
> --
> Frank Marion                      Loofah Communications
> frank at loofahcom.com               http://www.loofahcom.com
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !

More information about the thelist mailing list