Hello everyone, I’m experimenting a bit with ajax, and I was wondering why I can’t execute a script (javascript!) that’s placed in a file that’s fetched from the server…
E.g: Here’s my page that fetches other pages to change the content:
[url]http://elife.ramakersonline.be/email/
and here’s one of the pages that’s being fetched :
[url]http://elife.ramakersonline.be/email/small/home.html
In home.html, I placed the following code:
<script type=”text/javascript”>
document.write(“test”);
</script>
This code words perfectly in the page itself, but when it’s fetched, it doesn’t.
Here’s some extra info:
[LIST][*]
I use relative url’s, but it doesn’t work with absolute url’s either.
If I just type “test” in home.html, it does actually work, but I want to be able to use javascripts so…