I was wondering if you can include HTML files from javascript?
I use something like this in HTML ,
<!--#include file="bottom.html"-->
Now I was wondering if I can call to include an HTML file from within javascript?
I've tried doing,
document.write('<!--#include file="bottom.html"-->');
But it seems like javascript realizes there is a comment,
beginning at (<!--) and then the rest of the line is in grey italics in ColdFusion studion (i.e. indicating it is a comment). so it seems like it doesnt recognize the end of comment (-->)
and right to the end of the line, including the ending semicolon is all commented out?
I'm wondering if this is an acceptable way of including files, but I am just missing something syntacitcally, or whether there is another way to do it? Any help would be greatly appreciated and solve many problems.
I use something like this in HTML ,
<!--#include file="bottom.html"-->
Now I was wondering if I can call to include an HTML file from within javascript?
I've tried doing,
document.write('<!--#include file="bottom.html"-->');
But it seems like javascript realizes there is a comment,
beginning at (<!--) and then the rest of the line is in grey italics in ColdFusion studion (i.e. indicating it is a comment). so it seems like it doesnt recognize the end of comment (-->)
and right to the end of the line, including the ending semicolon is all commented out?
I'm wondering if this is an acceptable way of including files, but I am just missing something syntacitcally, or whether there is another way to do it? Any help would be greatly appreciated and solve many problems.