I just learned a very hard lesson this evening... the "Mark of the Web" is
not the panacea for running HTML-based content locally. We just completed a
project, fairly straightforward one, that was a CD-ROM that included HTML
content with links between pages and also to PDF files. Well guess what?
Links to PDF files DO NOT WORK if you include "Mark of the Web" on your
pages in IE6/7. Why? I don't know. But I do know that I've got a very
expensive "make good" situation on my hands!
We routinely use "Mark of the Web" for HTML-based CD-ROM projects. We've
done this to avoid the hand holding, and uncertainty, that comes with having
an end user adjust their "run Active Content from CD" settings on IE. The
Mark of the Web has always allowed us to work around this issue. Until now
that it.
The Mark of the Web works if the links are to named anchors and *.htm/*.html
files. It does not like *.pdf!
Here's a very basic sample code...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0014)about:internet -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>simple pdf test</title>
</head>
<body>
<p>This is a <a href="sample.pdf" target="_self">link to a PDF file</a> at
the same level as this page.</p>
</body>
</html>
Create a new blank page and save it locally. Then copy a PDF file to the
same directory and rename it as "sample.pdf". Test the XHTML file in IE.
Click on the link. What happens? In my case, and all test bed PCs I've tried
in my office, the link is silently ignored.
Next, edit the XHTML file by removing the Mark of the Web line that is
between the DOCTYPE and the opening <html> element. Test again. It works!
Lesson learned!
Thought I'd share this one with you, so that you can benefit from my School
O' Hard Knocks education.
...Rob
________________________________________
Rob Emenecker @ Hairy Dog Digital
[Non-text portions of this message have been removed]
------------------------------------
================= Posting Guidelines ==================
http://preview.tinyurl.com/37zx2b
=======================================================
Come and join us on Facebook
http://www.facebook.com/group.php?gid=2699020125
=======================================================Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/adobe-dreamweaver/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/adobe-dreamweaver/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:adobe-dreamweaver-digest@yahoogroups.com
mailto:adobe-dreamweaver-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
adobe-dreamweaver-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
0 yorum:
Yorum Gönder