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 > August

The Universal Canvas Revisited: Approaches To Live Editing of Web Pages

By Jon Udell

August 6, 2001

(The Universal Canvas Revisited: Approaches To Live Editing of Web Pages :  Page 1 of 1 )



An earlier column entitled The Universal Canvas has drawn some really interesting commentary from readers. Clearly there's strong interest in live editing of web pages, and there are a number of different R&D efforts underway. As several folks pointed out, the DHTML edit control, which was the basis of the solutions described in the first column, has been superseded in IE 5.5 by capabilities that are embedded natively within the browser.

Andrew Mayo:

Your article on the DHTML editor was fascinating but were you aware that this functionality has largely been subsumed into the browser as of IE 5.5?

By simply marking any HTML component, such as a DIV (or even a SPAN) with "contenteditable=true", you will find that it becomes editable. Standard Word shortcuts such as ctrl-b, ctrl-i etc. allow you to bold and italicize text.

By embedding the IE browser ActiveX control in an application, you can then provide the user with an immensely rich UI as part of a larger application. You create the HTML to render the page 'on the fly' inside a VB application, for example, and then you simply insert this dynamically into the body of the page being shown by the browser control.

It is true that you can also build these sorts of applications using just JScript inside the browser, but debugging is much weaker than a hybrid VB-browser solution, where the browser effectively provides the display tier only.

Behaviors are useful in this regard because they allow you to then add editing functionality within the browser canvas in a modular and object-oriented way.

Consider, for example, the following page:

<html>
<body>
<div style=behavior:url("resize.h
	


 Page 1 of 1 


BYTE.com > Tangled in the Threads > 2001 > August
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