RE: [Zope] HTML formatting from a text field
I remember reading somewhere about messaging between Java applets and JavaScript code in the browser, allowing JavaScript code from a web form to manipulate the applet output; the example was typing something into a text box, clicking a button in a form, and having that rendered in some obscure font inside the applet. Where I read this escapes me, and I've never tried this, but I wonder if such a trick works conversely. In other words, what if the applet can pass values to a JavaScript variable associated with the value of a form input element in the browser's HTML DOM? I could imagine that something like this could be very effective for certain situations where people want better through-the-web editing of code (imagine if you could edit dtml in a web form color coding syntax with a feature to collapse blocks of code, similar to Homesite 4.5, or editing python scripts -- what were python methods -- with an outline-based editor that created automatic indentation). Or, better yet, imagine running JPython within the applet (I don't know whether this is possible) to do all this. Anyway, I wonder if this type of thing could be an alternative to either ActiveX components or a XUL/XPCOM based-interface. Sean -----Original Message----- From: Rik Hoekstra [mailto:rik.hoekstra@inghist.nl] Sent: Wednesday, December 13, 2000 8:17 AM To: lee.hunter@hum.com Cc: zope@zope.org Subject: Re: [Zope] HTML formatting from a text field Lee Hunter wrote:
Hi Ausum,
Do you mean a text field that shows a row of formatting buttons at the top for 'bold', 'italic' 'add link' etc.
There is an ActiveX control that is built in to IE Explorer 5.x - you just have to call it from your page.
Here's the information from Microsoft:
http://msdn.microsoft.com/workshop/author/dhtml/edit/ref/cncpt.asp
If you get it working with Zope (which shouldn't be a problem) let us
know.
There was a start at a product doing this (called ZIE) by Johan Carlsson , but it looks like it was aborted quite some time ago. Dont know about its status. You could try how far it would get you, tho see: http://www.zope.org/Members/johanc/ZIE hth Rik _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (1)
-
sean.upton@uniontrib.com