If you're using CF5, you can do a <cfsavecontent></cfsavecontent> around the 
<cfmodule> call, assigning the output to a var and regexing the output var to do your 
replacing.  Of course, you probably don't want to do this inline (i.e., within the 
textarea tag) because you could be generating a lot of unwanted whitespace.  I'd do 
the content-shuffling somewhere else--either at the top of the form page, or 
preferably in another fuse, and then plug the resulting var into the <textarea> tag.  
If you *have* to do it inline, be sure you're suppressing (or stripping out) the 
whitespace.  And if you're doing this in earlier versions of CF,  you can use the 
<cf_bodycontent> tag that Steve Nelson wrote, available at fusebox.org 
(http://www.fusebox.org/index.cfm?fuseaction=learn.gallery&CFID=9746&CFTOKEN=98919619).
 

Hope this helps,
REM O-

>>> [EMAIL PROTECTED] 05/13/02 09:06AM >>>
The below works fine:

<textarea>
<cfmodule template="../index.cfm" fuseaction="admin.showIssue">
</textarea>

But, I need to perform a replace function on the code returned by the 
CFMODULE call before inserting it into the textarea input.  Is there a 
way to do this?

Thanks.





[EMAIL PROTECTED] wrote:
> Sorry for all the email - have to reply to my own post here.  I forgot I 
> 
> had to use a relative url when referencing my index.cfm file....
> 
> 
> [EMAIL PROTECTED] wrote:
> > Hey Adam,
> > 
> > I spoke too soon...  Well, I'm sure it's my error, because it sounds 
> > like it will work well, but I'm getting the stappname error(no matter 
> > which fuseaction I call in the cfmodule tag? Any ideas? :
> > 
> > An error occurred while evaluating the expression: 
> > 
> > 
> > #strappname#
> > 
> > 
> > 
> > Error near line 26, column 11.
> > --------------------------------------------------------------------------------
> > 
> > 
> > 
> > 
> > Error resolving parameter STRAPPNAME
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > [EMAIL PROTECTED] wrote:
> > > That's awesome.  Thanks for your help!
> > > 
> > > Rich
> > > 
> > > 
> > > Cantrell, Adam wrote:
> > > > 
> > > >  
> > > > > SO basically, I have a fuseaction that does exactly what I want. 
> > > > > But what I 
> > > > > need to do is capture all the code that fuseaction creates 
> > > > > and somehow 
> > > > > put the code into the textarea form field, which will be 
> > > > > already using a 
> > > > > layout.
> > > > 
> > > > This will do exactly what you describe:
> > > > 
> > > > <texarea>
> > > >         <cfmodule template="index.cfm" fuseaction="admin.ShowIssue">
> > > > 
> > > 
> > > 
> > > 
> > 
> > 
> > 
> 
> 
> 

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================

Reply via email to