scriptygoddess

16 Dec, 2009

swfobject – flash doesn't load in Firefox

Posted by: Jennifer In: Flash|Javascript|Lessons learned

Ran into a bizarre problem today using swfobject. A lot of wasted time, but I'll give you the short story / solution.

I'm not sure of what other factors played a role (the fact that the element was in a absolute positioned container, or that the immediate container to the flash element was in a float) but I had the call to the swfobject javascript in the BODY tags of the html (not within the head tags). This was apparently causing Firefox to not display the flash. Simply moving the swfobject javascript code within the head tags of the html instantly fixed the problem.

I know I've used swfobject inside the body before – so I'm sure there's something else that contributed to the problem.

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

1 Response to "swfobject – flash doesn't load in Firefox"

1 | Dave Grant Urban

March 6th, 2010 at 7:26 am

Avatar

I noticed the same thing; no display in FF if swfobject is in the body. Unfortunately, I can't get to the head section because I use GoDaddy's Quick Shopping cart and I have access to the body html only. This sucks.

Comment Form

Featured Sponsors


  • Curt: If anyone comes across this with similar issues I was able to sort out the pagination issues painlessly with easyCommentsPaginate from http://www.mush
  • Christopher: Yeah, it is indeed hard to do. And something remains elusive about why the pagination never worked. I tried everything I could find. Regardless, I
  • Jennifer: Hi Christopher, always hard to bug test stuff like that remotely. Sorry those didn't help. Glad you found a solution though :)

About


Advertisements