At 12:03 PM 1/23/02 -0500, Steve Oliver wrote: >Name='welcome-email' >Value='Thank you for signing up! Your username is ' & user & ' and your >password is ' & password
That is no better. It would still try to evaluate the variables user and password in the custom tag's scope and NOT resolve them. >Or you could assign user and password to the request scope, since >request works in tag scopes > >Name='welcome-email' >Value='Thank you for signing up! Your username is #Request.user# and >your password is #Request.password#' Hmm... That would work, but would require adding code to hundreds of places to copy the variables into the request scope before calling the custom tag. There has GOT to be a way to evaluate using my caller's scope instead of my own (custom tag) scope. Slightly better than using request, I can use #caller.user# and #caller.password# inside the value. That would require changing all the values, but at least I wouldnt have to change any code that uses the custom tag. >______________________ >steve oliver >cresco technologies, inc. >http://www.crescotech.com > > >-----Original Message----- >From: Peter Theobald [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, January 23, 2002 11:47 AM >To: CF-Talk >Subject: Help: need to Evaluate() in Caller's context > > >I have some text blocks that can be customized by the client (a >mini-mini document management). >In those blocks they sometimes access variables, for example: > >Name='welcome-email' >Value='Thank you for signing up! Your username is #User# and your >password is #password#' > >This dynamic text is accessed by calling my custom tag: > ><cf_dynamictext name='welcome-email'> > >My problem is how do I substititute the variables in the text value? >If I just use #Evaluate(query.value)# then it will not have the >variables #user# and #password# defined in the custom tag, because they >belong to the caller's scope, not the custom tag's scope. > >How do I Evaluate() in the context of my caller? >Or in other words, how do I make all Caller. variables accessible in the >Variable. scope? > > >Thanks, >Peter Theobald > >P.S. please CC me directly because I only read the list every week or so >and I need to get this working quickly. > > > > ______________________________________________________________________ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

