vitorbertolucci
Member
- Joined
- Apr 15, 2014
- Messages
- 75
- Reaction score
- 18
Im having the problem that my gesior's menus always open when I load my website. I have alredy edited the line at initialize.js that says which ones should open so I think I have something wrong in my layout. I have debugged the website wih mozilla and I got this error message:
And what I have in this line is
So for some reason getElementById is returning a nill value... Wonder if someone can help me out here.
Here are my files
layout.php:
http://hastebin.com/yilegobaci.xml
initialize.js
http://hastebin.com/fuqelobuvu.coffee
And my website is www.realbaiak.com
Code:
TypeError: document.getElementById(...) is null
initialize.js:190:7
And what I have in this line is
PHP:
document.getElementById(menuItemName + "_Submenu").style.visibility = "hidden";
So for some reason getElementById is returning a nill value... Wonder if someone can help me out here.
Here are my files
layout.php:
http://hastebin.com/yilegobaci.xml
initialize.js
http://hastebin.com/fuqelobuvu.coffee
And my website is www.realbaiak.com