Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Fix - Firefox compatibility & Smart Shape buttons in Responsive Project

Explorer ,
Jun 15, 2015 Jun 15, 2015

I wanted to post this as I know a lot of others have had this problem in that Firefox would not load slides from a responsive project/HTML5 output that included Smart Shape buttons.  I'm hoping this will resolve your issue as it did with me:

The issue stems from how Captivate publishes the JavaScript behind the responsive project.  More specifically, Firefox requires that the "event" object be passed to event handlers/functions, which is not how the JavaScript is currently written.  If you open a responsive project that includes Smart Shape buttons within Firefox and open the Developer Tools, you'll see that Firefox catches a series of errors in the console, all of which are reference errors stating that the event object is not defined.

In order to get a published output that includes Smart Shape buttons to work correctly in Firefox, you must edit the CPM.js file included in the published output:

  1. Open your published output directory
  2. Go to the "assets" directory, and then the "js" directory.  You will find the CPM.js file located here.

Open the CPM.js file in a simple text editor (Notpad, Wordpad, etc...) and then do a "Find" for this text:

cp.AutoShape=function(e,k,a)

Edit this line to include "event" as a parameter:

cp.AutoShape=function(e,k,a,event)

Save your edits, making sure that the file still includes the ".js" extension after you have made your changes.

Now, attempt to open your published output in Firefox and check the slides that include the Smart Shape buttons.  If your edit was correct, you should see your slide load correctly in Firefox, and your Smart Shape buttons should also be functioning as intended.

Note that this fix does not get rid of the incompatible browser warning message.  You will need to make some other corrections to remove this warning (example found here: HTML5 and Firefox with Captivate 8.01)

Post back if this works for you.

1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Jun 15, 2015 Jun 15, 2015

Thanks, great find! Buttons on every slide and named so that you can control them is a big waste of time for such a simple fix.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 15, 2015 Jun 15, 2015

Thanks a lot for posting this fix!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 16, 2015 Jul 16, 2015
LATEST

Apologies for bumping, but thank you dearly for this!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources