We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 364
    • 32 Posts

    I am getting runtime errors at line 7. class is undefined. in drop_down_menu.js that came with the modx install. in both IE 5.5 and IE 6. I dont get it in FF, or IE 7.

    Any idea’s as to what the problem may be? I’m still new to modx, PHP and JS, sorry.

    site is at http://hollywood-furniture.com/index.php?id=1

    Just wondering why i’m getting the error, as i will probably just remove the the call to include it.

    /**
     * Light Menu System v0.1
     * @author Jonathan Schemoul
     * @copyright 2006-2007 Holdiland
     * @license GPL V2 or newer
     */
    var menuEffects = new Class({
            initialize: function(selector, options) {
                    this.options = Object.extend({
                            subElement: false,
                            subElementSelector: 'a'
                    }, options || {})
                    this.selector = selector;
                    this.currTimer = 500;
                    $ES(selector + ' li ul').each(function(el) {
                            el.setStyles({
                                    'display': 'block'
                            });
                            normalHeight = el.offsetHeight;
                            el.setStyles({
                                    'height': 0,
                                    'overflow': 'hidden'
                            });
                            elParent = $(el.parentNode);
                            
                            currentMenu = new Fx.Style(el, 'height');
                            elParent.addEvents({
                                    'mouseover': function(submenu, myParent, targetValue) {
                                            myParent.addClass('hover');
                                            submenu.clearTimer();
                                            submenu.custom(targetValue);
                                    }.pass([currentMenu, elParent, normalHeight]),
                                    'mouseout': function(submenu, myParent, targetValue) {
                                            myParent.removeClass('hover');
                                            submenu.clearTimer();
                                            submenu.custom(targetValue);
                                    }.pass([currentMenu, elParent, 0])
                            })
                    }.bind(this));
            }
    });
    function processMenuEffects (){
            var myMenus = new menuEffects('#myajaxmenu', {
                    subElement: true
            });
    }
    window.onDomReady(processMenuEffects)
      • 20413
      • 2,877 Posts
      Try <base href="[(site_url)]"></base> w/o your url in there.
        @hawproductions | http://mrhaw.com/

        Infograph: MODX Advanced Install in 7 steps:
        http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

        Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
        http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower