<script .../> source files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

After searching through KB and going over posts here, I see no mention of
this issue. So into the ether it goes...

I've been making a Web page on my local machine. Mostly for myself, but
this concerns me for future development. When linking to script sources using
<script type="text/javascript" src="/path/to/script.js"/> pages in IE6
present as blank, examining the source shows that the content was downloaded
but not displayed.

After some tinkering I've determined it isn't anything except for the
fact that the file is sourced from outside the document. The page can be
reformulated to embed the script directly and works fine, but when going
outside the document it displays as blank.

This issue appears to only happen in IE too. The computers I'll be
using to access this page are all IE, while I use Firefox, so it's important
that it work.

I've lowered the security profile my installation of IE, which didn't
do anything. I've disabled all firewalling/virus checking and found that
didn't help either. As I said before there didn't appear to be any relevant
KB articles, but I could've missed something.

If there is anyone with experience in this issue that has a resolution,
please, I'd be interested in how you solved this issue.


TIA,
Nathan
 
Nathan said:
After searching through KB and going over posts here, I see no mention of
this issue. So into the ether it goes...

I've been making a Web page on my local machine. Mostly for myself, but
this concerns me for future development. When linking to script sources using
<script type="text/javascript" src="/path/to/script.js"/> pages in IE6
present as blank, examining the source shows that the content was downloaded
but not displayed.

After some tinkering I've determined it isn't anything except for the
fact that the file is sourced from outside the document. The page can be
reformulated to embed the script directly and works fine, but when going
outside the document it displays as blank.

This issue appears to only happen in IE too. The computers I'll be
using to access this page are all IE, while I use Firefox, so it's important
that it work.

I've lowered the security profile my installation of IE, which didn't
do anything. I've disabled all firewalling/virus checking and found that
didn't help either. As I said before there didn't appear to be any relevant
KB articles, but I could've missed something.

If there is anyone with experience in this issue that has a resolution,
please, I'd be interested in how you solved this issue.

Shouldn't this..
<script type="text/javascript" src="/path/to/script.js"/>
be..
<script type="text/javascript" src="/path/to/script.js" />

I'm not sure if it makes any difference, I'm just thinking of
e.g. <br />

Try and give them a link to your page.
 
No, that doesn't and won't make a difference. It's strictly and IE issue,
because even innate code causes the issue. This isn't a JS issue, but a
browser issue I've come to find over the last few days.

Nathan
 
Nathan said:
No, that doesn't and won't make a difference. It's strictly and IE issue,
because even innate code causes the issue. This isn't a JS issue, but a
browser issue I've come to find over the last few days.

This works ok with IE6 on Win2K pro

- file "myjava.js" ----------------------

// File: myjava.js
// Author:
// Updated:
document.write("Hello from inside myjava.js")

- file "example.htm --------------------

<html>
<body>
<script type="text/javascript" src="myjava.js"></script>
</body>
</html>
 
Hi Nathan,

I've just experienced this myself but with VBS files using the script
include line. More interestingly, it works fine on my development PC (XP SP2
IE6) but not at my client's. My work-around for the moment has been to
include the functions in the main HTML file. I've ascertained that it's to
do with the server settings so I'm going to post a message over on the IIS
forums.

Martin
 
Back
Top