javascript menu not performing correctly in explorer 8 (works fine in chrome and explorer 8 compatability mode) -


i'm building website template can see here:

http://davewallace.net/sunschool/template-test.asp

all going until checked in explorer (8) on pc (i use chrome on pc)

the problem relates (left hand) side menu...

i noticed upon clicking second parent item in side menu (that during 1 session, clicking on 1 parent menu item after clicking on another) , every successive parent menu items clicked, contents of former parent menu clicked not disappear when should, instead staying on screen moving up, aligned top parent item. works fine in chrome however, in explorer.

* update! * did more research , viewed page again in explorer running "compatibility mode" , worked fine! have isolated problem down explorer 8 running in standard mode only.

update * ibu, have fixed couple of (relatively minor) html errors thought may have been causing problem. unfortunately not case *** believe javascript issue , kind of code clash between side menu , top menu code... trying best resolve love bit of javascript guruness rain down please :)

i note code clash code used display top menu dropdowns. know because i've used sidemenu code before on site (without other dropdown menu code) , works fine in both chrome , explorer.

i have included link code below - organised* , easy me debug!

http://davewallace.net/stack-overflow/code.zip

the side menu javascript css-dropdowns.js , suspect in file needs amended

*unfortunately of code in file not have line breaks , may hard read. apologise this. did not write code :)

the other javascript files relate top menu.

thanking in advance,

hope not tricky!

best regards,

dw

ok since went through test page see problem is, javascript least of problem:

having incorrect html cause other issues.

here found in console:

<head> must child of <html>. content ignored. template-test.asp:7 <html> encountered.  migrating attributes original <html> element , ignoring tag. template-test.asp:28 <meta> not allowed inside <div>. moving <meta> <head>. template-test.asp:29 unmatched </li> encountered.  ignoring tag. template-test.asp:69 

so fixing error fix other js errors


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -