Here's a little file editor I cobbled up for personal use:  EditFile.cfm
This could easily be incorporated for editing the .wir file.

- Jeff

************************ Begin EditFile.cfm ************************
<cfif parameterexists(btnSaveFile)>
  <cfoutput>
    <cffile action="WRITE" file="#fileName#" output="#txtContent#">
    #fileName# saved.
  </cfoutput>
<cfelse>
  <cfset myfile = "">
  <cftry>
    <cfoutput>
    Reading file #fileName#.<br>
    <cffile action="READ" file="#fileName#" variable="myFile">
    </cfoutput>
    <cfcatch>
    </cfcatch>
  </cftry>
  <form action="EditFile.cfm">
    <input type="hidden" name="fileName" 
value=<cfoutput>"#fileName#"</cfoutput>>
    <textarea name="txtContent" 
              cols="80" 
              rows="10" 
              wrap="off"><cfoutput>#myFile#</cfoutput></textarea>
    <input type="Submit" name="btnSaveFile" value="Save">
  </form>
</cfif>
************************** End EditFile.cfm ***************************


On 23 Feb 2001, at 11:47, BOROVOY Noam wrote:

> Lets try and focus on the area that all agree is important - usability.
> My boss's first reaction to Wireframe was "Neat, and can I edit this online"
> he didn't like needing to go into notepad - Wireframe could have some
> browser based interface to edit the sections - then it could actually be
> easier to use - add an "admin=yes" option on the url and voila there appear
> little buttons next to each item which allow edit/delete/add etc. - only
> problem is putting in the time to write it.
> Another side effect of this would be that then it does not matter how it is
> saved (I did not mention XM..., oops ;-)
> I do remember reading on some web site that Shane works 25 hours a day :-)
> so I'm sure he can get it done quickly, would be a nice project, and get
> people to your web site to download It, Shane...
> I'll volunteer for beta testing it (which basically means I'm willing to use
> the new version, large of me isn't it :) and report/fix bugs as I find them.
> 
> Noam
> 
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to