To add to what Kevin said, I think you have some confusion concerning server-side variables, in this case, Session.WriteOutput. Once you send the contents of that variable to the client (in this case, placing the contents in a textarea), ColdFusion cannot track how that data changes. What is in the textarea is NOT session.WriteOutput; it is merely a representation of what was stored in that variable. You must pass the data back to ColdFusion (ideally, as a form variable) and process something like #form.text#, not #session.WriteOutput# when you write using CFFile. --- Billy Cravens HR Systems, Sabre [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Kevin Moss Sent: Tuesday, June 12, 2001 8:50 PM To: [EMAIL PROTECTED] Subject: Re: <CFFILE & <TEXTAREA> If I read this right, you are using a hyperlink to do the action. Since you are not posting the data, the changes aren't committed and the value of the textarea is what is loaded. You need to do a form submission and have an action page that "reads" you changes then commit it to the text file. Kevin ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 12, 2001 8:24 AM Subject: Re: <CFFILE & <TEXTAREA> > > > Hi, > > I'm having a problem trying to save any changes that I make to the > file once it's opened in the <textarea> box. > > The file gets written out but not any additions? > > > <cffile action="READ" > file="#URLDecode(application.dirpath)##URLDecode(datafile)#" > variable="textvar"> > <textarea cols="70" rows="25" name="textvar" id="textvar" wrap="off"> > <cfoutput>#HTMLEditFormat(textvar)#</cfoutput> > <cfset session.writeoutput = #HTMLEditFormat(textvar)#> </textarea> > > > <a href="action-write.cfm" class="midnavlinks">[SAVE] > > > action-write.cfm file > -------------------------- > > > > <cffile action="WRITE" file="C:\output.txt" > output="#session.writeoutput#" addnewline="Yes"> > > > > ---------------------------------------------------------------------- > --- > This email server is running an evaluation copy of the MailShield anti- > spam software. Please contact your email administrator if you have any > questions about this message. MailShield product info: www.mailshield.com > > ----------------------------------------------- > To post, send email to [EMAIL PROTECTED] > To subscribe / unsubscribe: http://www.dfwcfug.org ------------------------------------------------------------------------ - This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com ----------------------------------------------- To post, send email to [EMAIL PROTECTED] To subscribe / unsubscribe: http://www.dfwcfug.org ------------------------------------------------------------------------- This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com ----------------------------------------------- To post, send email to [EMAIL PROTECTED] To subscribe / unsubscribe: http://www.dfwcfug.org
