
07-23-2008
|
|
|
|
Re: "unknown runtime error" in htc
> 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  ublic="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>
|