Skip to main content
Inspiring
April 11, 2013
Answered

SWFObject is undefined

  • April 11, 2013
  • 1 reply
  • 969 views

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?

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

    This topic has been closed for replies.
    Correct answer danmorrisonline

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

    1 reply

    RodWard
    Community Expert
    Community Expert
    April 12, 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.

    danmorrisonlineAuthorCorrect answer
    Inspiring
    April 12, 2013

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

    RodWard
    Community Expert
    Community Expert
    April 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