corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » website error help...


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author website error help...
Dan
Premium Member

Avatar

Registered: 22nd Apr 02
Location: Gorleston on Sea, Norfolk
User status: Offline
15th Sep 10 at 21:13   View Garage View User's Profile U2U Member Reply With Quote

Evening all.

I am in middle of building a new website, but for some reason i have an error i cannot understand.

www.thearmyandnavy.co.uk

If you hover over the left hand catagories (test) it comes up with an error bottom left in IE.

What the hell does it mean :/




Adult GiftsClick here to vist us
Whittie
Member

Registered: 11th Aug 06
Location: North Wales Drives: BMW, Corsa & Fiat
User status: Offline
15th Sep 10 at 21:17   View User's Profile U2U Member Reply With Quote

It's fine in Firefox.

Guessing its to do with hover colour's etc....
Dan
Premium Member

Avatar

Registered: 22nd Apr 02
Location: Gorleston on Sea, Norfolk
User status: Offline
15th Sep 10 at 21:23   View Garage View User's Profile U2U Member Reply With Quote

Where the fook will i find them :/


Adult GiftsClick here to vist us
ed
Member

Registered: 10th Sep 03
User status: Offline
15th Sep 10 at 21:54   View User's Profile U2U Member Reply With Quote

It's a Javascript error. I can't seem to find out where the function toggleMenu(); is or what it does from a quick glance. You could try getting rid of this bit:

onmouseover="toggleMenu(this,1)" onmouseout="toggleMenu(this,0)"

From the menu called "nav". That will fix it, but I'm not sure if it will break something else.
ed
Member

Registered: 10th Sep 03
User status: Offline
15th Sep 10 at 21:56   View User's Profile U2U Member Reply With Quote

Also, if you use Firefox, download Firebug. If you use Chrome, you can use the development tools to find errors
Dan
Premium Member

Avatar

Registered: 22nd Apr 02
Location: Gorleston on Sea, Norfolk
User status: Offline
15th Sep 10 at 22:26   View Garage View User's Profile U2U Member Reply With Quote

ive looked at my own site, and compared the source, the only difference i can see is this

the non working site has this code:

<ul id="side-nav">
<li class="level0 nav-1 parent" onmouseover="toggleMenu(this,1)" onmouseout="toggleMenu(this,0)">
<a href="http://thearmyandnavy.co.uk/test.html">
<span>Test</span>
</a>
<ul class="level0">
<li class="level1 nav-1-1 first last">

The fully working is the same except the last line says :

<li class="level1 nav-1-1 last">

is the word first throwing my error?


Adult GiftsClick here to vist us
ed
Member

Registered: 10th Sep 03
User status: Offline
15th Sep 10 at 22:34   View User's Profile U2U Member Reply With Quote

The word first is a class so it shouldn't matter. The problem is definitely the onmouseover and onmouseout stuff. The toggleMenu() function appears to be missing...
Dan
Premium Member

Avatar

Registered: 22nd Apr 02
Location: Gorleston on Sea, Norfolk
User status: Offline
15th Sep 10 at 22:46   View Garage View User's Profile U2U Member Reply With Quote

i cannot find the term togglemenu anywhere, in any css or js files

I hate not knowning wtf im doing lol


Adult GiftsClick here to vist us
Richie
Member

Registered: 3rd Dec 02
Location: Newport, Wales
User status: Offline
15th Sep 10 at 22:55   View User's Profile U2U Member Reply With Quote

toggleMenu() is not defined in magento 1.4.10. As explodedmenu relies on this function it is broken.
To fix it you can just change app/code/community/Raptor/Explodedmenu/Block/Navigation.php.

Replace


toggleMenu(this, 1) with

Element.addClassName(this, \'over\')
and


toggleMenu(this, 0) with

Element.removeClassName(this, \'over\')

[Edited on 15-09-2010 by Richie]
Richie
Member

Registered: 3rd Dec 02
Location: Newport, Wales
User status: Offline
15th Sep 10 at 22:59   View User's Profile U2U Member Reply With Quote

Theres loads on various forums about it
Dan
Premium Member

Avatar

Registered: 22nd Apr 02
Location: Gorleston on Sea, Norfolk
User status: Offline
16th Sep 10 at 07:41   View Garage View User's Profile U2U Member Reply With Quote

thanks for pointing me in the right direction richie.

I dont have the files mentioned in that.

But i did some more googling and found the place where it defines the onmouseover and changed it. It cured the problem


Adult GiftsClick here to vist us

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
Website help!! error message about DNS or somethin! Munchie General Chat 8 111
28th Nov 03 at 19:25
by Munchie
 
does this look old and crappy or is it just the pic???? ackers2302 General Chat 20 260
19th May 06 at 10:40
by Daniel_Corsa
 
cant get nochex to work for corsasport membership DAZ1985 General Chat 7 134
31st Mar 07 at 16:36
by DAZ1985
 
'error on page' Craig W Geek Day 15 378
26th Sep 07 at 14:02
by S214_UPP
 
Blackberry 8320 Help Jambo Geek Day 25 1439
20th May 09 at 08:30
by Jambo
 

Corsa Sport » Message Board » Off Day » Geek Day » website error help... 30 database queries in 0.0135741 seconds