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

SWFObject is undefined

Explorer ,
Apr 11, 2013 Apr 11, 2013

My project runs fine when I test it on my personal web host; however, when we upload it to the corporate site we receive the following error message. Can anyone suggest why this is happening and how I might correct it?

37899354.png

When I searched the forums for the "swfobject is undefined" error, I found a few messages that suggest that the standard.js file is not present in the directory. I have verified that the file is present. However, it has been renamed to standard.js.htm. I tested running the project from my host with the standard.js.htm file and it runs fine.

I'd really appreciate any help you can give me.

Thanks!

Dan

871
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

correct answers 1 Correct answer

Explorer , Apr 12, 2013 Apr 12, 2013

Yes, the file is present. Here's a screen grab of the directory the server admin sent me. Any other ideas? Thanks.

37759776.png

Translate
Community Expert ,
Apr 11, 2013 Apr 11, 2013

Did you also upload the standard.js file along with the HTM and SWF that Captivate creates at publish?  If not, that's why you are seeing this error.

If you DID upload the standard.js, check that it did not get deleted before it reached the server.  Make sure it is present on the web server.  If you cannot see the folder on the web server, get your server admin person to confirm the standard.js is there.  Sometimes the web server will delete js files or refuse to serve them.

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
Explorer ,
Apr 12, 2013 Apr 12, 2013

Yes, the file is present. Here's a screen grab of the directory the server admin sent me. Any other ideas? Thanks.

37759776.png

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 ,
Apr 13, 2013 Apr 13, 2013

The filename of the JS file is wrong.  It's got .htm added at the end of it.  It should be just standard.js

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
Explorer ,
Apr 15, 2013 Apr 15, 2013
LATEST

Thanks, Rod. I *thought* I had successfully tested with the htm extension in place; so I didn't think that was the issue. But now I'm thinking I must not have cleared my cache before testing.

In any event, it's working! Thanks again.

Dan

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