BYTE.com
RSS feed

Newsletter
Free E-mail Newsletter from BYTE.com
Email Address
First Name
Last Name




 
    
             
BYTE.com > Tangled in the Threads > 2001 > June

Ektron's eWebEditPro And eMPower

By Jon Udell

June 8, 2001

(The Universal Canvas :  Page 3 of 3 )



In this Article
The Universal Canvas
Stuff Needs To Flow
Ektron's eWebEditPro And eMPower
Spoke's use of the DHTML edit control prompted me to look around for other implementations.

The search led to Ektron, which has refined and packaged the technology to produce something I've long imagined: a complete pluggable replacement for the HTML TEXTAREA widget. The product, which wraps several layers of integration code around the core edit control, works with MSIE and (by way of a plugin) with Netscape, though for Windows only in both cases.

From a developer's perspective, the trick is performed in exactly the right way. When you want to embed the editor in an HTML file, you use JavaScript to source the editor's integration code into the page, define a hidden form variable to accumulate and send its output, and then create an instance of the control. To the user, it looks like Word where a TEXTAREA otherwise would have been. To the developer, it looks the same: that is, when unpacking form variables in a back-end script, the editor's HTML (or XHTML) output shows up in a named field, just like the output of a TEXTAREA widget would have.

There are three ways to control the behavior of the editor: JavaScript, ActiveX, and XML. The JavaScript API defines properties and events. Among the properties is a collection of instances, of which there can be several on the page. Methods include load() and save(), which transfer content between the editor and its associated hidden form variable. The ActiveX API allows more granular control -- for example, getting or setting the selected region within the editor.

Although Ektron does offer specific integration support for ASP, ColdFusion, PHP, and JSP, you can deploy the editor from any kind of Web server. The XML API is what makes this possible. When the editor loads, its JavaScript glue tells it where (on the server) to find an XML configuration file. That file then governs both the appearance and behavior of the control. Using XML declarations, you can fully customize the toolbar, the menus, and the wiring that connects these either to built-in commands, or to custom commands implemented elsewhere.

Previous page Page 3 of 3 


BYTE.com > Tangled in the Threads > 2001 > June
Dr. Dobb's Media Center
BYTE.com Store

BYTE CD-ROM
NOW, on one CD-ROM, you can instantly access more than 8 years of BYTE.
 
The Best of BYTE: Volume 2 - Heuristic Algorithms
The Best of BYTE: Volume 2 - Heuristic Algorithms
In this volume of Best of BYTE, we explore the emergence of some heuristic algorithms. Although we have only scratched the surface of this intriguing subject, we hope we've suggested the potential of the synthesis of heuristics and algorithms.

© 2008 Think Services, Privacy Policy, Terms of Service, United Business Media Limited
Site comments: webmaster@byte.com
Web Sites: BYTE.com, dotnetjunkies.com, Dr. Dobb's Journal, SD Expo, Sys Admin, sqljunkies.com, Unixreview



MarketPlace
Try Numara FootPrints 9, The ITSM software that Delivers Real Value, Flexibility and Results.
Sign Up & Get Full Access To The Definitive Online Book Collection With SkillSoft's Books24x7�.
Fast online exception analysis. Capture customer crash data online.
One Stop to Buy All Your Business IT Solutions. Browse Through Dell's Best Deals Online Now!
Understand C/C++ code in less time. A new team member ? Inherited legacy code ? Get up to speed faster with Crystal Flow for C/C++. Code-formatting improves readability. Flowcharts are integrated with code browser. Export flowcharts to Visio.
Wanna see your ad here?
 

web2