Page 1 of 1

Help debugging please... this error only happens in FF

Posted: Mon Mar 23, 2009 3:50 pm
by ferio-moreno
Hi,

I just finished making an update to my site layout, and for some reason, i'm having problem after problem after problem. In Safari, Opera, and IE, the site works flawlessly....but firefox is giving me some really dumb errors.

1. I had to import my stylesheet into my main page because I was having constant problems with firefox not reading the stylesheet external (regardless of the way that I called it).

2. I'm getting these odd errors in firefox resulting in my links not working.... and this disfunctionality is sporadic. There errors that I'm getting say :

Code: Select all

syntax error
[Break on this error] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML...TR/xhtml1/DTD/xhtml1-transitional.dtd">\n
prototype.js (line 1)
uncaught exception: script.aculo.us requires the Prototype JavaScript framework >= 1.4.0
[Break on this error] undefined
Permission denied to call method Location.toString
[Break on this error] undefined
$ is not defined
pull_category()(5)ecstylez2.js (line 7)
(?)()javascri...egory(5); (line 1)
[Break on this error] $('body').innerHTML = this.p
 
feel free to preview as well. http://www.ecstylez.com. I'm not getting any errors in any browsers (except FF). The site has been W3C validated (except for the flash music player).

Re: Help debugging please... this error only happens in FF

Posted: Tue Mar 24, 2009 1:56 pm
by kaszu
I think "script.aculo.us requires the Prototype JavaScript framework >= 1.4.0" error message says it all.

It works for me. Using FF 3.1 b3
Already fixed?

Re: Help debugging please... this error only happens in FF

Posted: Wed Mar 25, 2009 5:34 am
by ferio-moreno
but I'm using Prototype v.1.6 and have been using it for months. The problem still stands....

Re: Help debugging please... this error only happens in FF

Posted: Wed Mar 25, 2009 1:17 pm
by kaszu
If I clear the cache, then after reloading it doesn't work, but I don't get any error messages. After next refresh it works.
There is a problem with loading javascript files. In your case Prototype js file wasn't loaded. In my case 'ecstylez2.js' wasn't loaded.
I have no idea why this is happening. Btw, correct url is http://ecstylez.freehostia.com/

Re: Help debugging please... this error only happens in FF

Posted: Wed Mar 25, 2009 1:45 pm
by php_east
wrong

Code: Select all

<script type="text/javascript" [color=#FF0000]language="javascript"[/color] src="ecstylez2.js"></script>
correct

Code: Select all

<script type="text/javascript" src="[color=#0000BF]http://ecstylez.freehostia.com[/color]/ecstylez2.js"></script>
does not work

Code: Select all

<script type="text/javascript" src="/ext/js/modalbox/lib/prototype.js"></script>
<script type="text/javascript" src="/ext/js/modalbox/lib/scriptaculous.js?load=effects"></script>
 
works , no errors

Code: Select all

<script type="text/javascript" src="[color=#0000bf]http://ecstylez.freehostia.com/[/color]ext/js/modalbox/lib/prototype.js"></script>
<script type="text/javascript" src="[color=#0000BF]http://ecstylez.freehostia.com[/color]/ext/js/modalbox/lib/scriptaculous.js?load=effects"></script>
 
you are probably missing base.