Global variable undefinded? Access an object generated inside a function?
Hi, I'm JavaScript challenged so I'm going to need some help on this one.... I'm trying to get this accordion (based on prototype/scriptaculous) to open up a panel later in the page.
In the head <script> tag:
Code:
<script type="text/javascript">
Event.observe(window, 'load', loadMenu, false);
function loadMenu(){
sidebarMenu = new accordion('sidebar-menu');