>>----- Original Message -----
>>From: "Jonathan Trow" <[EMAIL PROTECTED]>
>>Sent: Tuesday, August 08, 2000 5:04 AM
>>Subject: Passing variables
>>
>> What would be the best way between a page and a display
>>handler used on it?


Simply using Request.* to communicate with a handler is "bad."
Try using stParams.


In the "thing" that is calling an method/handler:

<CFSET stParams=StructNew()>
<CFSET stParams.theText="Giant Potato">
<CFSET stParams.f3=true>
<cfa_contentObject
  dataSource="#request.cfa.objectstore.dsn#"
  lObjectIDs = "#grabPage.objectID#"
  bSecure=false
  method="display_link"
  stParams="#stParams#"
  >


In the method/handler that is being called:

<CFPARAM name="Attributes.stParams.f3" default=false>
<CFIF Attributes.stParams.f3>
  <CFSET theImageFile="#theImageFile#_locked">
</CFIF>


NOTE: I'm not totally against using Request.* (I actually use a module
that sets Request.myPageID and Request.myPageName so that
all the handlers/containers/objects on the page won't need to look
it up anytime they need to know the name of the page ...)



-- 
dreamlab imagineering : custom interactive solutions for business
                  http://dreamlab.com  .  214.526.3080


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

Reply via email to