SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Website on CD

  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2004
    Location
    London
    Posts
    83
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Website on CD

    My client wants me to transfer his website to a CD so that he could give a copy to his customers and they can view his site offline.

    Yeah, I told him how ridiculous that is but he doesn't care.

    However, when I transfer the site from the web server to any offline folder in Internet Explorer there is a Javascript security warning which I don't want to appear. So I add 'mark of the web' to the top of every html document
    HTML Code:
    <!-- saved from url=(0014)about:internet -->
    and the Javascript security warning dissapears but in IE no links will open!

    Test file with some blank Javascript:
    HTML Code:
    <!-- saved from url=(0014)about:internet -->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    	<head>
    		<title>Test</title>
    		<meta http-equiv="Pragma" content="no-cache" />
    		<meta http-equiv="Content-Type" content="text/html; charset=Windows-1250" />
    		<script language="JavaScript" type="text/javascript">
    		</script>
    	</head>
    	<body>
    		<div><a href="123.html">Some link</a></div>
    	</body>
    </html>
    So if I leave out mark of the web at the top then security warnings appear but with the file as it is above links won't open, all in IE.

    How do I transfer the site to the CD so that security warnings don't open in IE and links open normally?

    I've tested this on MSIE 7 and on a MSIE 6 inside a virtual machine so I know the problem isn't isolated to my particular system.

  2. #2
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    I would leave the security warnings and just give him the instructions saying he will need to allow the script to be run, Internet Explorer by default has security settings in place to prevent active content being run on the system, you can't override it without it running in a protective mode which will seriously affect the way the site functions (as you have seen), essentially it's a case of just giving it across "as-is" because you can't get around it (as far as I am aware).

  3. #3
    SitePoint Zealot
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    189
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To control notification when active content is run from the Internet or from a CD
    The links should work after changing this option. Having to tell all your clients to do this is will cause more problems than it solves.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •