I have inserted a java script web wiget on my web site by copy and paste. It works fine in IE (shows, updates data etc). In FFox it does not even show up and no error messages are given. If I look at the code in FFox, it is shown. Is there a problem with my web site or am I short something in FFox?
- All posts
- Helpful Solutions
First, is java enabled in your Firefox?
Different browsers treat some scripts differently. It may be that Firefox doesn't recognize it as an instruction and simply ignores it. When writing a web page, it needs to be tried in all possible browsers to ensure compatibility. It can be a headache at times.
You might go to the original page where you copied the script from and look through all the code. There may be references before your widget that infer: if browser is internet explorer, do this. If Firefox, do this. etc. It may be as simple as changing a couple of words.
To avoid confusion:
Can you post a link to a publicly accessible page that doesn't require authentication (log in) to access it?
Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
- Press and hold Shift and left-click the Reload button.
- Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
- Press "Command + Shift + R" (MAC)
I hope I'm not violating any policies by posting code here:
This is the optional code your source offered. It seems to work in all my browsers. Firefox may not like the "object" tags for some reason.
<embed src=http://ActionAmerica.org/flash/gsdCount.swf width=240 height=175 wmode=transparent type=application/x-shockwave-flash></embed>
(I edited this because I posted the wrong code the first time.)
I tried it in Chrome, IE 10, and Firefox Aurora (The alpha version of Firefox). Aurora works quite well, by the way. IE 10's security settings made me approve running the script and it didn't show up until I clicked on where it should be, but I am using Windows 8 and there seem to unlimited numbers of bugs. It should probably show up on your XP machine.
I too am having a similar issue as of 18.0.1 I have flowplayer contained within a div id. The player randomly disappears and sometimes will display when I refresh.
This is on an intranet server running wowza. I can't deploy an example for anyone to look at on a public server. Works in Safari OS X, does not on FF and OS X. Works in IE 8 on Windows 7.
Thanks to all of you for your suggestions; all were good thoughts and valid. It was the obvious, as pointed out by purevw, that was the answer: Firefox apparently does not like object code but will accept the embed command. I used the alternative code and things work fine now. Thanks again to all of you who lent a hand.
The object tag should work in Firefox as long as there is a data attribute to specify the file and no classid to specify an ActiveX control for IE.
<object data="file.swf" height="xxx" width="xxx" type="application/x-shockwave-flash" > <param name="flashvars" value="<additional flash vars>" /> <param (more params) /> </object>
cor-el, this will be a continuing pursuit in my quest for better knowledge of just how to make the code work for me, as I want it too! I will take this information and review the original code to see where it went wrong. Even though it works with the alternate code, I will still get a great satisfaction if I can make the object tag work. Thank you for taking the time to share your knowledge.
<object data="http://ActionAmerica.org/flash/tfdclock.swf" width=190 height=185 wmode=transparent type=application/x-shockwave-flash> <param name="movie" value="http://ActionAmerica.org/flash/tfdclock.swf" /> </object>
<object data="/v2/common/flowplayer-3.2.4.swf" width=640 height=360 wmode=transparent type=application/x-shockwave-flash> <param name="movie" value="/v2/common/flowplayer-3.2.4.swf" /> <param name="flashvars" value="/v2/common/flowplayer.flv" /> </object>
- IMPORTANT ANNOUNCEMENT: We’re going through some system changes, that may have slowed responses to your questions. If you had asked a question in the last couple of months, please re-post it and the community will help you as soon as we can. If you’ve registered after February 7th, please register again, the accounts on the previous site were not migrated to this temporary site. If you joined us before February 7, please reset your password if you have trouble logging into this temporary site.