By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,599 Members | 1,872 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,599 IT Pros & Developers. It's quick & easy.

JS disabled offline?

P: n/a
A colleague is having difficulty getting JavaScript to work in a
webpage he's viewing offline in IE6. Apparently JS is enabled & works
in webpages viewed online. Are there any obvious remedies?

Nigel

--
ScriptMaster language resources (Chinese/Modern & Classical
Greek/IPA/Persian/Russian/Turkish):
http://www.elgin.free-online.co.uk

Oct 7 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a


Nigel Greenwood wrote:
A colleague is having difficulty getting JavaScript to work in a
webpage he's viewing offline in IE6. Apparently JS is enabled & works
in webpages viewed online. Are there any obvious remedies?


On Windows XP with Service Pack 2 (often called Windows XP SP 2) script
in HTML document loaded in IE from the local file system is indeed
disabled by default as a security measure (well sometimes seen as a
crippling of the browser instead of implementing real security
measures), the browser will display a warning in a bar at the top of the
content window. The context menu on that bar allows to have the page
reloaded with script executed.

The so called mark of the web described here
<http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/motw.asp>
allows authors of HTML documents to be loaded locally have script
enabled but treated as if loaded from a particular domain.

If the system is not Windows XP SP 2 then someone has simply disabled
script for IE for the local file system zone, IE has a zone model (file
system, intranet, web, trusted sites) where features like scripting can
be configured for each zone.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Oct 7 '05 #2

P: n/a
Nigel Greenwood wrote:
A colleague is having difficulty getting JavaScript to work in a
webpage he's viewing offline in IE6. Apparently JS is enabled & works
in webpages viewed online. Are there any obvious remedies?

Google "The mark of the web"
Mick
Oct 7 '05 #3

P: n/a

Mick White wrote:
Google "The mark of the web"


Many thanks for both responses. Not having IE6 SP2, I wasn't aware of
the problem.

I don't like the .hta solution very much, as it's restricted to IE. If
I have an application with several linked HTML files, I presumably need
to add a Mark of the Beast:

<!-- saved from url=(0014)about:internet -->

(or 0013, by MS's arithmetic)

to each page -- should the CSS file have one too? I ask, not because
I'm too lazy to try it out, but because I can't simulate IE6 behaviour
on my system!

Nigel

--
ScriptMaster language resources (Chinese/Modern & Classical
Greek/IPA/Persian/Russian/Turkish):
http://www.elgin.free-online.co.uk

Oct 7 '05 #4

P: n/a
Just to repeat one thing that puzzles me: if several linked HTML files
all have the MOTW & also refer to a CSS file, what should I do to
ensure they link to the correct CSS file when they're opened in IE6 SP2
on the local machine? Can I put a MOTW in a CSS file too?

Nigel

Oct 8 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.