How can I include a file using JavaScript?
document.write( '<!--#include file="myfile.ht m" -->')
won't work because of the commenting. Is there a way to fool
JavaScript into including the file at the appropriate point?
Currently I am calling iframes instead of using SSI. You can see why
I'd want to switch.
If it cannot be done with SSI, is there another inclusion format that
will work?
(For those who want to chastise me for using JavaScript at all, rest
assured I am not abusing it and that the appropriate <noscript> tags
are in use.)
document.write( '<!--#include file="myfile.ht m" -->')
won't work because of the commenting. Is there a way to fool
JavaScript into including the file at the appropriate point?
Currently I am calling iframes instead of using SSI. You can see why
I'd want to switch.
If it cannot be done with SSI, is there another inclusion format that
will work?
(For those who want to chastise me for using JavaScript at all, rest
assured I am not abusing it and that the appropriate <noscript> tags
are in use.)
Comment