Jquery Joomsport无法完全使用joomla 3.2空白模板

Jquery Joomsport无法完全使用joomla 3.2空白模板,jquery,css,joomla,mootools,typeerror,Jquery,Css,Joomla,Mootools,Typeerror,所以我有一个本地主机站点,包含Joomla 3.2和joomsport 2.0.2。当我开始编辑它时,它是好的。但是当我试着看球队的东西时,它就坏了。我的英语很差,所以请试着理解我的问题 这就是我点击团队名称时发生的情况: Uncaught TypeError: Object [object Object] has no method 'getElements' grid.js:79 Class.getHeaders grid.js:79 e.extend.$owner mootools

所以我有一个本地主机站点,包含Joomla 3.2和joomsport 2.0.2。当我开始编辑它时,它是好的。但是当我试着看球队的东西时,它就坏了。我的英语很差,所以请试着理解我的问题

这就是我点击团队名称时发生的情况:

    Uncaught TypeError: Object [object Object] has no method 'getElements' grid.js:79
Class.getHeaders grid.js:79
e.extend.$owner mootools-core.js:38
Class.initialize grid.js:58
(anonymous function) mootools-more.js:27
e.extend.$owner mootools-core.js:38
(anonymous function) mootools-core.js:37
(anonymous function) 1?Itemid=:194
Uncaught TypeError: Object [object Object] has no method 'adopt' slimbox.js:6
(anonymous function) slimbox.js:6
(anonymous function) mootools-core.js:121
(anonymous function) mootools-core.js:5
Array.implement.each mootools-core.js:9
invoke.fireEvent mootools-core.js:120
j
单击某些选项卡后,会显示以下内容:

    Uncaught TypeError: Cannot set property 'display' of undefined 1?Itemid=:181
show_etabs 1?Itemid=:181
onclick
那我该怎么办?我一直在搜索谷歌大约3-4个小时,这是我的最后一次。所以请大家帮我解决这个问题。我对html和css略知一二。但关于jquery的内容不多,所以

grid.js

/**


 * @name Grid


 * @author Rick Hopkins


 * @classDescription


 * Sort table data


 * MIT-style License.


 */





var Grid = new Class({


    /** define some variables */


    table: false, 


    headers: false, 


    data: false, 





    /**


     * Initialize the object


     */


    initialize: function(table){


        this.table = table;


        this.getHeaders();


    }, 





    /**


     * Get the headers


     */


    getHeaders: function(){


        this.headers = this.table.getElements('thead tr th');


        this.headers.each(function(h, index){


            //h.store('asc', false);


            if (h.hasClass('sort')) h.addEvent('click', function(){


                if(h.hasClass('asc')){


                    h.className = 'sort desc down';





                    //h.addClassName('desc');


                }else{


                    h.className = 'sort asc';


                    //h.addClassName('asc');


                }


                //if (h.retrieve('asc')) h.store('asc', false);


                //else h.store('asc', true);


                //this.sort($('tblrank_id'));


                this.sort(index);


            }.bind(this));


        }, this);


    }, 





    /**


     * Get the table data


     */


    getData: function(){


        this.data = this.table.getElements('tbody tr');


    }, 





    /**


     * Sort the data


     * @param int index


     */


    sort: function(index){


        this.getData();


        data = [];


        sortType = this.headers[index].getProperty('axis');





        asc = this.headers[index].hasClass('asc');//this.headers[index].retrieve('asc');


        if (this.data.length > 0) this.data.each(function(row, i){


            cells = row.getElements('td');


            if (cells.length < this.headers.length) return false;


            value = cells[index].innerHTML;





            if(cells[index].childNodes[0].nodeName.toLowerCase() == "a"){


                //alert(cells[index].childNodes[0].innerHTML);


                value = cells[index].childNodes[0].innerHTML;


            }
            if(cells[index].childNodes[0].nodeName.toLowerCase() == "img"){
                if(cells[index].childNodes[1].nodeName.toLowerCase() == "p"){
                    if(cells[index].childNodes[1].childNodes[0].nodeName.toLowerCase() == "a"){

                        value = cells[index].childNodes[1].childNodes[0].innerHTML;

                    }
                }
            }


            if (sortType == 'int' || sortType == 'float'){


                if (value.contains('$') || value.contains(',')) value = value.replace(/\$/g, '').replace(/,/g, '').toFloat();


                else value = value.toFloat();


            } else if (sortType == 'date') value = Date.parse(value);


            data.push({'index': i, 'value': value, 'row': row});


        }, this);





        if (sortType == 'int' || sortType == 'float' || sortType == 'date') data.sort(this.sortNumeric);


        else data.sort(this.sortCaseInsensitive);


        if (!asc) data.reverse();





        this.data = [];


        data.each(function(d, i){


            this.data.push(d.row);


        }, this);





        this.data.each(function(row, i){


            if (row.hasClass('gray')) row.removeClass('gray');


            if (row.hasClass('yellow')) row.removeClass('yellow');


            this.table.getElement('tbody').adopt(row.addClass((i % 2 == 0 ? 'gray' : 'etblraw1')));


        }, this);


    }, 





    /**


     * Sort Numerica Values


     * @param object a


     * @param object b


     */


    sortNumeric: function(a, b){


        /*if ($type(a.value) != 'number') a.value = 0;


        if ($type(b.value) != 'number') b.value = 0;*/


        return parseInt(a.value) - parseInt(b.value);


    }, 





    sortCaseInsensitive: function(a, b){


        a.value = a.value.toLowerCase();
        a.value = a.value.replace(/<\/?[^>]+>/g, '');

        b.value = b.value.toLowerCase();
        b.value = b.value.replace(/<\/?[^>]+>/g, '');

        if (a.value == b.value) return 0;


        if (a.value < b.value) return -1;


        return 1;


    }


});
/**
*@name网格
*@作者里克·霍普金斯
*@classDescription
*排序表数据
*麻省理工学院风格的许可证。
*/
var Grid=新类({
/**定义一些变量*/
表:假,
标题:false,
数据:假,
/**
*初始化对象
*/
初始化:函数(表){
this.table=表格;
这是getHeaders();
}, 
/**
*获取标题
*/
getHeaders:function(){
this.headers=this.table.getElements('thead tr th');
this.headers.each(函数(h,索引){
//h、 存储('asc',假);
if(h.hasClass('sort'))h.addEvent('click',function(){
if(h.hasClass('asc')){
h、 className='sort desc down';
//h、 addClassName('desc');
}否则{
h、 className='sort asc';
//h、 addClassName('asc');
}
//if(h.retrieve('asc'))h.store('asc',false);
//否则h.store('asc',正确);
//this.sort($('tblrank_id'));
这个。排序(索引);
}.约束(这个);
},这个);
}, 
/**
*获取表数据
*/
getData:function(){
this.data=this.table.getElements('tbody tr');
}, 
/**
*对数据进行排序
*@param int index
*/
排序:函数(索引){
这是getData();
数据=[];
sortType=this.headers[index].getProperty('axis');
asc=this.headers[index].hasClass('asc');//this.headers[index].retrieve('asc');
如果(this.data.length>0)this.data.each(函数(行,i){
cells=row.getElements('td');
if(cells.length/g',);
b、 value=b.value.toLowerCase();
b、 value=b.value.replace(/]+>/g',);
如果(a.value==b.value)返回0;
如果(a.value

更新####-我在localhost上尝试了新鲜的joomla安装和joomsport,效果很好。我编辑的javascript或空白模板有问题。这真是在浪费我的时间。请大家帮帮我。

我以为它是从这个系统目录加载的。你能添加
警报(MooTools.version)在你的代码中,看看你得到了什么?看起来应该是的,上面写着1.4.5,我想我会从一开始就做所有的事情。太令人沮丧了。如果上传的话,你能帮我吗?是的,把它放到网上,然后把链接粘贴到这里,这样我们可以提供更多帮助。