P
Paul
HI! I am trying to dynamically add content into Div tags with the use of
JavaScript. it loads the page but adds a few characters. the script is
below.
<script language="JavaScript">
document.write('<div id=DivExample>"<!--#include
virtual="/Include_Pages_Asp/Main.htm" --></div>');
</script>
The characters that are added is right after the end of Main.htm page. they
are as follows.
');
I also get this JavaScript error in IE
Line: 48
Char:106
Error:Unterminated string constant.
Since the page does load fully I suspect that Its a small syntax problem but
I just don't know what.
can someone tell me what I am doing wrong?
JavaScript. it loads the page but adds a few characters. the script is
below.
<script language="JavaScript">
document.write('<div id=DivExample>"<!--#include
virtual="/Include_Pages_Asp/Main.htm" --></div>');
</script>
The characters that are added is right after the end of Main.htm page. they
are as follows.
');
I also get this JavaScript error in IE
Line: 48
Char:106
Error:Unterminated string constant.
Since the page does load fully I suspect that Its a small syntax problem but
I just don't know what.
can someone tell me what I am doing wrong?