|
Having Multiple EditLive! Objects on a Web pageEphox, November 2001 SummaryA number of EditLive! objects can be included in the one Web page if you wish to replace several plain text areas on an online form with the rich content interface of EditLive!. This article outlines how to implement the EditLive! code into your page in this situation. More InformationIntroduction EditLive! can be used to replace several plain text areas on the one online form. There are certain things that need to be considered, however, when implementing the EditLive! code into the page. This article assumes you have an understanding of the basics in integrating EditLive! into a page. If you would like to learn more about this before reading this article please go to EditLive! Integration Basics. Sample Source Code A sample of this situation will have been installed on your machine when you installed the Ephox EditLive! 4.0 Development Kit. To view the source code please click on Start > Programs > Ephox EditLive! > Samples > Open Sample Source Code Folder. The source code can be found in the folder Advanced > MultipleEL. To run this sample through your web server please click on the shortcut in the Ephox EditLive! folder in the Programs menu. EditLive! code elements which only need to be included in the page once 1. Including the External EditLive! script files The EditLive! script files, editLive4.js and editLive4.vbs, only needed to be referenced in the page once, in the HEAD section.
2. Configuring the EditLive! Global Variables The location of the EditLive! download directory on the server only needs to be included in the page once, before any of the EditLive! objects are created.
EditLive! code elements which need to be included for each EditLive! object Each EditLive! object within the single Web page will need its own script block which will include:
For example, the script block for your first EditLive! object would look like the following:
The script block for your second EditLive! object would look like the following:
Things to Remember
|
|
|||||||||||||||||||||||||||||||||||||||
| Copyright © 1999-2005 Ephox Corporation. All Rights Reserved. 'Ephox' is a registered trademark of Ephox Corporation. Java and the Java Powered logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. |