A website containing a DWF I created from a DWG map of a town will no longer display using Firefox 8.0 nor in Chrom 15.0.874.106, but it displays fine in IE 8.0.6001.18702 and Safari for Windows 5.0.1 (7533.17.8).
This has never happened, and I have always been able to view the DWF in all three browsers. In fact, I viewed them fine just yesterday. Today not.
I have disabled plug-ins, add-ons and extensions (like Adblock Plus, Downloader Helper, Firebug and Java Quick Starter), but no luck with Firefox or Chrome displaying the DWF. I have also emptied the cache and history, but that only worked yesterday when I experienced the same lack of loading, but fixed it by emptying the cache and history. Today, this does not work.
And ADR standalone displays the DWF fine on my localdisk.
Here is the Web link that should call the map and which works fine in IE and Safari for Windows:
http://www.greatnorthroad.org/maps/nkana_kitwe/full_map.php
Anyone want to give me a hand? I really don't want to have to go back to using IE or Safari for Windows.
DAVE COOPER
ROERMOND
THE NETHERLANDS
Thank you for reporting this issue.
We are able to embed code in web pages to enable DWF file viewing using Microsoft Internet Explorer for a long time. (How do I embed a DWF file in an HTML page?)
Now, the Autodesk® Design Review Browser Add-on that enables DWF file viewing in Firefox™ and Google™ Chrome. However, the web pages must contain the proper embedding code that recognizes the add-in.
The web page above only contains code for IE:
<object width="100%" height="100%" classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF" codebase="http://www.autodesk.com/global/dwfviewer/installer/DwfViewerSetup.cab#version=7,0,0,928">
<param name="src" value="http://www.greatnorthroad.org/elements/media/maps/kit_cop.dwf" />
</object>
You need add code for Firefox and Chrome:
<object id="ADR" type="application/x-Autodesk-DWF" width="100%" height="100%">
<param name="dwffilename" value="http://www.greatnorthroad.org/elements/media/maps/kit_cop.dwf"/>
</object>
You may also want to use some JavaScript Browser Detect code to ensure the visitor’s browser serves up the Internet Explorer or non-Internet Explorer code.
Please let me know if I can be of any further assistance.
Herbert ...
Thanks for the quick response. I have added the following code that you suggested:
<object id="ADR" type="application/x-Autodesk-DWF" width="100%" height="100%">
<param name="dwffilename" value="http://www.greatnorthroad.org/elements/media/maps/kit_cop.dwf"/>
</object>
The result is:
So we have a score of success of 3 out of 4. We're getting there!
Any ideas on how to get Chrome to display the map? Do you think I need to ferret about for some Chrome add-on, extension or plug-in? Or would that JavaScript you mention above do the trick?
Your help is greatly appreciated.
Groetjes ...
Dave Cooper
Roermond
The Netherlands
Thank you for your feedback.
Please to replace the segment between '<!-- START OBJECT -->' and '<!-- END OBJECT -->' with:
<?php
$ Sys = {};
$ ua = navigator.userAgent.toLowerCase();
$ s;
(s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] : 0;
if(Sys.ie){
?>
<!-- Internet Explorer code. -->
<object id="IEOBJECT" width="100%" height="100%" classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF" codebase="http://www.autodesk.com/global/dwfviewer/installer/DwfViewerSetup.cab#version=7,0,0,928">
<param name="src" value="http://www.greatnorthroad.org/elements/media/maps/kit_cop.dwf" />
</object>
<?php
}
else
{
?>
<!-- Hide IE OBJECT. -->
<script type="text/javascript">
var Sys = {};
var ua = navigator.userAgent.toLowerCase();
var s;
(s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] : 0;
if (!Sys.ie)
{
document.getElementById("IEOBJECT").style.width= 0;
document.getElementById("IEOBJECT").style.height= 0;
}
</script>
<!-- Firefox and Chrome code. -->
<object id="ADR" type="application/x-Autodesk-DWF" width="100%" height="100%">
<param name="dwffilename" value="http://www.greatnorthroad.org/elements/media/maps/kit_cop.dwf" />
</object>
<?php
}
?>
Hope that helps. 🙂