Design Review

Design Review

Reply
Active Contributor
dcooper
Posts: 30
Registered: ‎01-14-2007
Message 1 of 4 (4,346 Views)

DWF won't load in Firefox nor Chrome, but will in IE and Safari for Windows ...

4346 Views, 3 Replies
11-09-2011 06:41 AM

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

 

 

Employee
herbert.he
Posts: 338
Registered: ‎03-05-2008
Message 2 of 4 (4,332 Views)

Re: DWF won't load in Firefox nor Chrome, but will in IE and Safari for Windows

11-10-2011 12:00 AM in reply to: dcooper

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 He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Active Contributor
dcooper
Posts: 30
Registered: ‎01-14-2007
Message 3 of 4 (4,327 Views)

Re: DWF won't load in Firefox nor Chrome, but will in IE and Safari for Windows

11-10-2011 03:13 AM in reply to: herbert.he

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:

 

  • Mozilla Firefox - the map displays as expected
  • Chrome - the map does not display. A new tab is displayed and Chrome attempts to begin the DWF display but only gets to displaying the background colour of the original website, then it stops. A blank display occupies the browser window. And I notice that now the right-click menu in the Chrome window is not available.
  • IE - the map displays as expected
  • Safari for Windows - the map displays as expected

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

Employee
herbert.he
Posts: 338
Registered: ‎03-05-2008
Message 4 of 4 (4,318 Views)

Re: DWF won't load in Firefox nor Chrome, but will in IE and Safari for Windows

11-10-2011 11:13 PM in reply to: dcooper

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. :smileyhappy:



Herbert He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!