On Friday, June 10, 2011 18:06:19 PM Mark R Swain wrote:
> WebODF on a web server
> http://www.webodf.org/redmine/projects/webodf/wiki/WebODF_on_a_web_server
> I couldn't find the odf.html nor the css !
Hello Mark,
Actually this information has just been invalidated. The new way is to use
webodf.js and webodf.css
<link rel="stylesheet" type="text/css" href="webodf.css"/>
<script src="webodf.js" type="text/javascript" charset="utf-8"></script>
function init() {
var url = "myurl.odt",
odfelement = document.getElementById("odf"),
odfcanvas = new odf.OdfCanvas(odfelement);
odfcanvas.load(url);
}
</script>
<title></title>
</head>
<body onload='init()' >
<div id="odf"></div>
</body>
webodf.js and webodf.css are located in the folder webodf and are the only two
files you need.
Cheers,
Jos
--
Jos van den Oever, software architect
+49 391 25 19 15 53
074 3491911
http://kogmbh.com/legal/