• Resolved bitxo

    (@bitxo)


    Hi,

    I found that in all pages except where you are using scrollGallery you can see:

    TypeError: Object [object DOMWindow] has no method ‘addEvent’ [http://www.xxxxxss.info:347]

    I easily solve it editing SG2Foot function:

    public function SG2Foot(){
    if (sizeof($this->sgJSArray)> 0)
    {
    echo ‘<script type=”text/javascript”>
    window.addEvent(\’domready\’, function() {‘;

    foreach($this->sgJSArray as $scriptout){
    echo ‘
    ‘.$scriptout;
    }

    echo ‘ });
    </script>’;
    }

    }

    But I think that this plugin must be refined: why so many js and loading all these scripts & etc in each page? For example, this js is not necessary, I suppose.

    Regards.

    http://ww.wp.xz.cn/extend/plugins/nextgen-scrollgallery/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: NextGEN Scroll Gallery] TypeError: Object [object DOMWindow] has no method 'addEvent&#’ is closed to new replies.