Perhaps the attribute struct is not yet created when that line of code
executes. That may cause the error in CF5...and in MX it would auto create
the struct if it didn't exist.
<cfif NOT IsDefined("attributes")>
<cfset attributes = structNew()>
</cfif>
HTH
Stace
-----Original Message-----
From: Smith, Matthew P -CONT(DYN) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 27, 2002 12:36 PM
To: CF-Talk
Subject: can't refernce #attributes# on cf5?
I'm in the unenviable position of working a site with a development server
running cfmx and the production server running cf 5.
I have a bit of code that verifies the form and cfmodules back to the form
if an error is found passing the entire attributes scope to maintain the
user entries.
Works perfect on the dev(mx) box, but dies on the prod(cf5) box.
I can't even do a <cfdump var="#attributes#">
The below code shows attributes.birthDateDay, but gets an undefined error on
the cf dump on the cf 5 server. It works fine on the mx box...
<cfset attributes.birthDateDay = form.birthDateDay>
<cfoutput>#attributes.birthDateDay#</cfoutput><br>
<cfdump var="#attributes#"><cfabort>
Matthew P. Smith
Web Developer, Object Oriented
Naval Education & Training Professional
Development & Technology Center
(NETPDTC)
(850)452-1001 ext. 1245
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.