This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C02490.44DE3720
Content-Type: text/plain;
        charset="windows-1252"

  Attached is a corrected version.  Copy paste can be a bad thing sometime.
(when you forget to make changes to what you paste.)  Steve please post this
version to the fusebox site.  

   Thanks

   Daniel

-----Original Message-----
From: John Quarto-vonTivadar [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 22, 2000 1:37 AM
To: Fusebox
Subject: Re: [Fusebox] Updated FormUrl2attributes for CF 4.5


if it does get re-written it should include a test for pre-4.5 versions so
that it doesn't break "old" code. That way it can be replaced on
/cfusion/customtags directories with impunity.



> How about rewriting the current posted CF_FormUrl2Attributes to implement
> the use of structures and posting it as a CF 4.5+ version.
>
> Justin Kidman
>


----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


------_=_NextPart_000_01C02490.44DE3720
Content-Type: application/octet-stream;
        name="formurl2attributes.cfm"
Content-Disposition: attachment;
        filename="formurl2attributes.cfm"

<cfsilent>
<!--- This tag will turn all 'Form' and 'URL' scoped variables into 
'Attributes' scoped variables.  This allows you to have a common scope 
of variables, thus allowing you to call the entire application i.e. index.cfm
as a CFMODULE or as a regular application.
Designed for: CF 4.5+
--->
<cfif not isdefined('caller.attributes')>
        <cfset caller.attributes=structnew()>
</cfif>
<cfif NOT StructIsEmpty(url)>
        <cfif StructIsEmpty(caller.attributes)>
                <cfset caller.attributes=structcopy(url)>
        <cfelse>
                <cfloop collection="#url#" item="urlname">
                        <cfif not StructKeyExists(caller.attributes, urlname)>
                                <cfset caller.attributes[urlname] = url[urlname]>
                        </cfif>
                </cfloop>
        </cfif>
</cfif>


<cfif NOT StructIsEmpty(form)>
        <cfif StructIsEmpty(caller.attributes)>
                <cfset caller.attributes=structcopy(form)>
        <cfelse>
                <cfloop collection="#form#" item="field">
                        <cfif not StructKeyExists(caller.attributes, field)>
                                <cfset caller.attributes[field]=form[field]>
                        </cfif>
                </cfloop>
        </cfif>
</cfif>
</cfsilent>
------_=_NextPart_000_01C02490.44DE3720--
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to