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/