473,407 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

JS disabled offline?

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
4 1769


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
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

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: moko | last post by:
This is a bit long-winded. Can somebody read thru these 2 use cases, and tell me if it is feasible ? :- Use Case : Replication before Offline Synch Scenario 1 : Oracle Server , MSDE client ...
3
by: Robert Scheer | last post by:
Hi. When IE is offline and I try to create a new web application, I receive an error that says that I need IE online in order to create the new application. What is the relationship of IE and...
2
by: John | last post by:
Hi I need to write a vb2005/sql server2005 app running over a LAN. Some users who use laptop need to have the app to have an offline mode for when they are away. I am new to net and would like...
10
by: Michael Hoffmann | last post by:
Hello, I hope this doesn't come across as totally newbieish, but I've been searching the web and the IBM docs until smoke is coming out of my head. Scenario: We are trying to take primitive...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.