>I am trying to use an htc file that generates it's content.
> The web page:
[quoted text clipped - 12 lines]
>
> element.innerHTML generates an "unknown runtime error" any ideas?
> Appears the xmlns namespace spec is required if you are going to modify
> innerHTML in a htc.
No, not needed
The web page:
<html>
<head>
<style TYPE="text/css">
.htc_test { behavior:url(htc_test.htc) }
</style>
</head>
<body class="htc_test"></body>
</html>
The htc file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<public:component xmlns:public="urn:HTMLComponent" lightweight="true">
<public:attach event="oncontentready" handler="execute" />
<script type="text/javascript">
function execute() {
element.innerHTML = "<b>hello world</b>";
}
</script>
</public:component>
trosen - 23 Jul 2008 16:39 GMT
My sample contained xmlns: but that is not needed so htc could be simpler:
The htc file:
<?xml>
<public:component>
<public:attach event="oncontentready" handler="execute" />
<script type="text/javascript">
function execute() {
element.innerHTML = "<b>hello world</b>";
}
</script>
</public:component>