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

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
ferio-moreno
Forum Commoner
Posts: 30
Joined: Tue Feb 28, 2006 10:31 pm
Location: florida

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

Post 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).
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

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

Post 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?
ferio-moreno
Forum Commoner
Posts: 30
Joined: Tue Feb 28, 2006 10:31 pm
Location: florida

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

Post by ferio-moreno »

but I'm using Prototype v.1.6 and have been using it for months. The problem still stands....
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

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

Post 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/
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

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

Post 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.
Post Reply