>By putting type="struct" you force the variable to be a struct, else an >error would be thrown. >By setting de default value to an empty string, you invoke that error. > >This should work: ><cfparam name="session.chgProject" type="struct" default="#StructNew()#"> > > > > >> Could someone please explain why I get 'Invalid parameter type' error for >> the cfparam below in Mozilla (used by some of my users), but not in Firefox? >> >> <cfparam name="session.chgProject" type="struct" default=""> >> >> What is the alternative that will work in both browsers? Thanks >> >> Thanks Wim, but this doesn't work either. However the following declaration did fix the problem (although a cfparam is more appropriate in my situation): <cfset session.chgProject = StructNew()>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308100 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4