Forum Moderators: phranque
Now the customer wants 1000 printed Cds with a static version of the site on. I have explained the dynamic stuff wont work ;)
Does anyone have any commercial experience doing a project like this, that theyare willing to share? like what are the big issues, processes and rough costs?
Thanks!
[edited by: Receptional_Andy at 1:31 pm (utc) on July 19, 2006]
The goal is to allow the pages when on CD to run Javascript (etc.) without always triggering the security warning added in WinXP SP2. If you just copy HTML files to a CD and then browse them from the CD, you get security warnings that you don't get on the website.
Microsoft applies stricter standards to "local zone" security than to "internet zone" security. So, when a webpage is saved from the web to local storage, MS writes a "mark of the web" comment into it before the <html> tag; this allows that local file to be run with internet-zone security (or even the security of a specific domain--e.g., the domain may be a "trusted site"). You can add the mark to your files yourself, as though they had been saved from the web.
The "mark of the web" is a special comment inserted between the doctype and the <html> open bracket, and here is the generic non-specific form of it:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!-- saved from url=(0014)about:internet -->
<html>
<head>
...
(The "0014" is a count of the characters in the following URL or in a special string such as "about:internet", the case here.)
This generic comment or a specific-domain alternative should be inserted into every HTML file on the CD to avoid the unwanted security warnings.
REFERENCE:
[microsoft.com...]
(note that this page contains a typo--it counts the characters in the string "about:internet" as 0013, but the accurate count 0014, as shown above, works correctly).
or search on Google for
[local zone sp2 mark of the web]
The whole issue is more than a little weird, but browsing a website on CD produces irritating and intrusive security warnings on SP2 unless this magic-incantation comment is added to each HTML file.
P.S. The same "mark of the web" will prevent the bogus security warnings when the HTML files are browsed on a hard disk or on a USB flash drive--same issues as on a CD.