Hi
I have following files:
Test.HTML
script1.JS
script2.JS
style1.css
style2.css
in test.html i have 2 includes:
- style1.css
- script1.JS
in style1.css there's an @import of style2.css (works fine)
in script1.JS, I tried to include script2.JS as following:
document.write( '<script type="text/javascript" src="script2.js " charset="UTF-8"></scr' + 'ipt>');
When I launch the html page, i have 2 situations:
only the half of the html is loaded and de scrollbar is totally locked.
the moment i refresh the page, i get a white page.
when i look at the script, I only see:
<script type="text/javascript" src="script2.js " charset="UTF-8"></script>
When I include the script2.js manually in html, it works perfectly fine!
Is there any workaround to solve this problem?
Thank you so much in advance!
Tomaz
I have following files:
Test.HTML
script1.JS
script2.JS
style1.css
style2.css
in test.html i have 2 includes:
- style1.css
- script1.JS
in style1.css there's an @import of style2.css (works fine)
in script1.JS, I tried to include script2.JS as following:
document.write( '<script type="text/javascript" src="script2.js " charset="UTF-8"></scr' + 'ipt>');
When I launch the html page, i have 2 situations:
only the half of the html is loaded and de scrollbar is totally locked.
the moment i refresh the page, i get a white page.
when i look at the script, I only see:
<script type="text/javascript" src="script2.js " charset="UTF-8"></script>
When I include the script2.js manually in html, it works perfectly fine!
Is there any workaround to solve this problem?
Thank you so much in advance!
Tomaz
Comment