ok, this is simple, but I kinda need a noob's help.
I'd like to do something simple: To assign an HTML file contents to a JS var, and then to pass this html code into a page element using the innerHTML property.
This can be done easily with HtmlHTTPRequest, however, i'm not sure what is the exact code i should use.
here's what I'd like to achieve:
var foo = contents_of_an_html_file (file.html)
document.getElementById('preview').innerHTML = foo;
Would be happy for your enlightenment :)