Yeah I agree you can shortcut to the "request('variable')" which does a nice
job of getting rid of the scope on the variable. I am writing an if
statement that does the same thing but it is not as efficient as just using
the "request('variable')" method.
I could not find any reason to get to an attributes scope? Cause ASP code
cannot be called like <cfmodule> can call tags or cfm files. The only
reason to drop the scope is so forms and urls can easily call the index.asp
file.
John
-----Original Message-----
From: David Huyck [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 19, 2000 11:28 AM
To: Fusebox
Subject: Re: Who's our FuseBox ASP expert?
I, too, have been playing around with ASP-Fusebox, and I am using
server.execute("file_to_include.asp") instead of <!--#include
virtual="file_to_include.asp" --> (available to IIS 5) This reduces the
amount of extraneous code that gets included in the program when you are
trying to use conditionals, like the "Select Case" statement in the
default.asp.
I am also using Jeff's FormURL2Attributes.asp to convert my request vars. I
have noticed, however, that you can shortcut to an ASP request variable by
writing "request('variable')", which accesses either
request.form("variable") OR request.querystring("variable"). Any reason to
use the attributes scope? I'm running into the same issue with PHP, where I
can't CF_Module to a fuse app anyway, so there doesn't SEEM to be much point
in using the attributes scope. Any arguments the other way? I'd love to
hear what others have to say.
Thanks,
David Huyck
[EMAIL PROTECTED]
> Hi John. I read a little of the white paper you adapted from Steve Nelson
> for ASP. What do you do about rescoping variables to the attributes scope?
I
> ended up using the dictionary object to create an attributes collection.
It
> may have been someone on this list that suggested it. I can't remember. I
> created a FormURL2Attributes.asp that converts all the Request.Form and
> Request.QueryString variables to the attributes scope. I call
> FormURL2Attributes.asp from app_globals.asp.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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