Updated: 1/1/2003; 1:07:56 AM.
Jesse Ezell's Radio Weblog
.NET and Other Interesting Stuff
        

Monday, December 30, 2002

More Xopus Updates

New DLL with some fixes, plus some fixes to Xopus itself. The null error has been fixed (internal xopus problem with postbacks) and some test scripts have been removed so everything appears to be working great so far.

This zip contains all the required xopus updates (so you don't have to manually tweak anything) and the DLL. Just unzip into your current xopus install (or somewhere in inetpub...msxml isn't included though if you want to support autodeploy on older browsers, so if you want that capability, download the xopus distro and take out the docs directory from it and put in in the folder for xopus). Place the DLL in your bin directory (or reference it in your VS.Net project) and remember to point the XopusRoot variable to the xopus directory.

Note: this Xopus code is .NET specific. If you are using Xopus in another environment, get the distro from xopus.org instead. Although the changes are pretty minor, you probably don't need them.

[Complete Fix / DLL Package]


11:01:20 PM    comment []

Xopus.NET (Continued)

I have made some more progress on the .NET Xopus Control. Save handlers are now mostly working (you will get a null reference script error from somewhere inside Xopus after the postback...still trying to figure this one out). Doesn't look like Xopus was exactly optimized for this type of situation, but it is working faily well now. 

If you try this out, make sure to point the static variable XopusRoot to the directory that contains Xopus. Everything else is pretty much self explainatory.

You will also need to install the .net database driver and Xopus to use the control.

[Xopus ContentEditor Web Control]

Code Snippet:

<cc1:ContentEditor runat="server" id="ContentEditor1" Width="511px" Height="294px" XmlSchemaUrl="standard.xsd" XmlSourceUrl="standard.xml">
  <Views
>
    <cc1:ContentView IsDefault="True" Name
="defaultView">
      <Transforms
>
        <cc1:Transform XslSourceUrl
="standard1.xsl" />
       
<cc1:Transform XslSourceUrl="standard2.xsl" />

        </
Transforms>
    </cc1:ContentView
>
  </Views
>
</
cc1:ContentEditor>

PS: For those who have not installed Xopus yet, you need to remember to install it in the wwwroot directory and access it through http, because of some of the Xopus internals which use MSXML to access the files through http.


4:28:26 PM    comment []

Xopus for .NET

If you haven't heard about Xopus, you need to check it out. It is a Xml based WYSIWYG editor for IE / Mozilla / Netscape. It runs in the browser window and has full support for xml validation, etc. Since it uses the contentEditable attribute in IE 5.5+ most users don't even have to download anything to get it to work. The best part is that it is open source, so you can modify it to suit your needs.

I have put together a Xopus wrapper for .NET. Basically, it isolates you from having to know all the Xopus details: just drag, drop, and set the designer properties.

Note: This is an early version, I still need to add save event handlers, etc. But, this is a start down the road.

[Xopus]
[Xopus ContentEditor Web Control]

For those interested...I also came across an implementation of the same type of thing on MSDN:

[MSDN Xml Editor]

It requires IE 6.0 though, so it isn't quite as cool.

 


12:22:15 PM    comment []

© Copyright 2003 Jesse Ezell.
 
December 2002
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Nov   Jan


Click here to visit the Radio UserLand website.

Subscribe to "Jesse Ezell's Radio Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.