PDA

View Full Version : EZS3 Javascript not working on bluehost, but exact same script works fine elsewhere



mblackwood
11-06-2009, 04:16 PM
Here is the script:


<script type="text/javascript">
var playerhost = (("https:" == document.location.protocol) ? "https://www.ezs3.com/secure/" : "http://www.ezs3.com/players/");
document.write(unescape("%3Cscript src='" + playerhost + "flv/prestoncrown/BCFCE8C7-9819-A896-43967F73FC4ABC0E.js' type='text/javascript'%3E%3C/script%3E"));
</script>

Here is the page that is not working in Firefox:
http://betterthanshortsale.com/avoidshortsale.html

Here is exact same script on a page not hosted on bluehost that does work in Firefox:
http://www.ezs3.com/public/28.cfm

felgall
11-06-2009, 05:01 PM
JavaScript runs in the web browser and so in both cases with what you are looking at the scripts are running in the same place - your browser. Where they came from is irrelevant.

mblackwood
11-06-2009, 05:53 PM
Felgall,

The script is for launching a flash player. And what i see is a message telling me that I have to get the latest version of the flash player, which I already have.

If you go to the link on bluehost using Firefox, what do you see?

redsox9
11-06-2009, 07:04 PM
I tried with both IE and with FireFox. I got the BH site to work with IE but not with Firefox. The other site works regardless of the browser selected.

However, the code you show in your original post does not match what is sourced from the BH page, while the EZS3 code does match. Is that your problem, perhaps?

felgall
11-06-2009, 07:13 PM
The script at http://www.ezs3.com/public/28.cfm contains JavaScript, the one at http://betterthanshortsale.com/avoidshortsale.html doesn't.

JavaScript that is not in the web page will not run.

There are plenty of differences between those two pages that might explain why they work differently that have nothing to do with where they are hosted.