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="JavaS cript">
document.write( '<div id=DivExample>" <!--#include
virtual="/Include_Pages_A sp/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:Untermina ted 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?
--
Thanks in advance :)
Paul
JavaScript. it loads the page but adds a few characters. the script is
below.
<script language="JavaS cript">
document.write( '<div id=DivExample>" <!--#include
virtual="/Include_Pages_A sp/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:Untermina ted 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?
--
Thanks in advance :)
Paul
Comment