Opened 17 years ago
Closed 17 years ago
#6346 closed defect (worksforme)
jscript error in mozilla
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | wiki system | Version: | devel |
Severity: | normal | Keywords: | javascript verify |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
Error from the opening page of the wiki:
$("#content").find("h1,h2,h3,h4,h5,h6").addAnchor is not a function (no name)()wiki (line 26) e()jquery.js (line 11) e()jquery.js (line 11) e([function(), function()], function(), undefined)jquery.js (line 11) e()jquery.js (line 11) [Break on this error] $("#content").find("h1,h2,h3,h4,h5,h6").addAnchor("Link to this section"...
Attachments (0)
Change History (8)
comment:1 by , 17 years ago
Component: | general → wiki |
---|---|
Owner: | changed from | to
Version: | → devel |
follow-up: 5 comment:2 by , 17 years ago
Keywords: | needinfo added |
---|
follow-up: 4 comment:3 by , 17 years ago
It is also useful to know what OS and browser (and versions of both) you are using.
comment:4 by , 17 years ago
Replying to sid:
It is also useful to know what OS and browser (and versions of both) you are using.
XP ver 2002 SP 2 & Firefox 2.0.0.9
comment:5 by , 17 years ago
Replying to cboos:
Looks like that for some reason your browser wasn't able to download the "common/js/trac.js" file. You should use some tool (e.g. Firebug if that works within Mozilla) to look at what happened with that script file.
I filed a bug because firebug told me there was a problem. Since which the problem has gone a way and the pages render with out complaint. So, for now the bug can not be reproduced.
follow-up: 7 comment:6 by , 17 years ago
Description: | modified (diff) |
---|---|
Keywords: | javascript verify added; needinfo removed |
Milestone: | → 0.11.1 |
I wonder whether the $(document).ready
takes into account all the secondary documents or not. It looks like this was not the case here, as if the ready callback was triggered before the trac.js was loaded (but after jquery.js was loaded).
comment:7 by , 17 years ago
Replying to cboos:
I wonder whether the
$(document).ready
takes into account all the secondary documents or not.
A browser will process any .js files included in the <head> before executing functions within the <body>. Given that fact, it's unlikely this would normally happen. Perhaps trac.js 404'd or 403'd. Either way, I'd consider this a one-time thing and recommend closing this as worksforme.
comment:8 by , 17 years ago
Milestone: | 0.11.1 |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
Assuming you meant "before executing functions within <script> elements inside the <head> element", as this is were the $("#content").find("h1,h2,h3,h4,h5,h6").addAnchor
line was located.
Actually from what I've read (e.g. http://www.unix.org.ua/orelly/web/jscript/ch10_06.html), the order of execution of scripts within <head> is simply the order in which they are parsed, regardless of whether the scripts are loaded indirectly (through src=...
) or inlined.
So it should have worked.
Looks like that for some reason your browser wasn't able to download the "common/js/trac.js" file. You should use some tool (e.g. Firebug if that works within Mozilla) to look at what happened with that script file.