N
NvrBst
I have some problems with the MSCHRT20.ocx (ActiveX Object -
MSChart). When I navigate away from the Page it sometimes does a pop
up saying an error occured. My focus is to stop/supress/hide this pop-
up.
I was trying to dynamically remove the chart from the page but seem to
have run into some problems. Heres my code.
<script type="text/javascript">
function remove() {
var tt = window.document.getElementById('TEST');
tt.parentNode.removeChild(tt);
}
</script>
----Body-----
<input id="Button1" type="button" value="button" onclick="remove()" />
<OBJECT id="TEST" style="..." classid="..." codebase="..."
data="..."></OBJECT>
<p id="TEST2">hihi</p>
the <OBJECT ...> shows the chart but it doesn't dissapear when I hit
the button. If I change "getEleementByID('TEST');" to "TEST2", then
pressing the button does remove the "<p .." tag.
Is there something special I have to do to remove a "<OBJECT>" tag
dynamically with Javascript? Or specifically a ActiveX control (In my
case MSChart - MSCHRT20.ocx).
Thanks, NB
MSChart). When I navigate away from the Page it sometimes does a pop
up saying an error occured. My focus is to stop/supress/hide this pop-
up.
I was trying to dynamically remove the chart from the page but seem to
have run into some problems. Heres my code.
<script type="text/javascript">
function remove() {
var tt = window.document.getElementById('TEST');
tt.parentNode.removeChild(tt);
}
</script>
----Body-----
<input id="Button1" type="button" value="button" onclick="remove()" />
<OBJECT id="TEST" style="..." classid="..." codebase="..."
data="..."></OBJECT>
<p id="TEST2">hihi</p>
the <OBJECT ...> shows the chart but it doesn't dissapear when I hit
the button. If I change "getEleementByID('TEST');" to "TEST2", then
pressing the button does remove the "<p .." tag.
Is there something special I have to do to remove a "<OBJECT>" tag
dynamically with Javascript? Or specifically a ActiveX control (In my
case MSChart - MSCHRT20.ocx).
Thanks, NB