Page tree
Skip to end of metadata
Go to start of metadata
 add.cfm -- create a new article
 End users can enter content using a web form and EditLive!
 The web form is submitted to the page xt_add.asp
 Copyright (c) 2005 Ephox Corporation. All rights reserved.
 See license.txt for license agreement
<!--- Load the configuration file on the server to speed up loading --->
<cfset configpath=ExpandPath("db_config.xml")>
<cffile action="read" file="#configpath#" variable="xmlConfig">
<cfset contents="<p>This is the initial source</p>">
<TITLE>Create a New Article</TITLE>
<LINK rel="stylesheet" href="sample.css">
These script files initialize the EditLive! API so that the EditLive!
properties and methods may be set to customise EditLive!.
<script src="../../redistributables/editlivejava/editlivejava.js"></script>
<H1>Create a New Article</H1>
This form contains EditLive!, a text area for the article title,
a submit button and a cancel button.
<FORM action="xt_add.cfm" method="POST" name="articleForm">
  <!--- Article title --->
  <P>Title: <INPUT type="text" name="article_title" size="50"></P>
<script language="JavaScript">
var ELJApplet1_js;
ELJApplet1_js = new EditLiveJava("ELJApplet1", "700", "600");
  <P><INPUT type="submit" value="Save" name="Add Article"> <INPUT type="button" value="Cancel" name="Cancel" onclick="javascript:history.back();"></P>
  • No labels