有谁用过MultiSelect & ItemSelector ?

有谁用过MultiSelect & ItemSelector ,我用ext2.2.1 官方里的例子 为什么不能运行呢? 总报未知运行错误 ?

[code="java"]

<script type="text/javascript" src="framework/ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="framework/ext/ext-all-debug.js"></script>  


<link href="framework/extend/selectItem/Multiselect.css" rel="stylesheet" type="text/css" /> 
<script type="text/javascript" src="framework/extend/selectItem/DDView.js"></script>  
<script type="text/javascript" src="framework/extend/selectItem/Multiselect.js"></script>
<script type="text/javascript" src="framework/extend/selectItem/ItemSelector.js"></script>   

<style>
    .demo-ct .x-panel-btns-ct {
        border-left: 1px solid #99BBE8;
        border-bottom: 1px solid #99BBE8;
        border-right: 1px solid #99BBE8;
        background: #DFE8F6;
    }
</style>

<script type="text/javascript">

Ext.onReady(function(){

Ext.QuickTips.init();
Ext.form.Field.prototype.msgTarget = 'side';


/*
 * Ext.ux.ItemSelector Example Code
 */
var isForm = new Ext.form.FormPanel({
    title: 'ItemSelector Test',
    width:700,
    bodyStyle: 'padding:10px;',
    renderTo: 'itemselector',
    items:[{
        xtype:"itemselector",
        name:"itemselector",
        fieldLabel:"ItemSelector",
        dataFields:["code", "desc"],
        toData:[["10", "Ten"]],
        msWidth:250,
        msHeight:200,
        valueField:"code",
        displayField:"desc",
        imagePath:"images/",
        toLegend:"Selected",
        fromLegend:"Available",
        fromData:[[123,"One Hundred Twenty Three"],
            ["1", "One"], ["2", "Two"], ["3", "Three"], ["4", "Four"], ["5", "Five"],
            ["6", "Six"], ["7", "Seven"], ["8", "Eight"], ["9", "Nine"]],
        toTBar:[{
            text:"Clear",
            handler:function(){
                var i=isForm.getForm().findField("itemselector");
                i.reset.call(i);
            }
        }]
    }],

    buttons: [{
        text: 'Save',
        handler: function(){
            if(isForm.getForm().isValid()){
                Ext.Msg.alert('Submitted Values', 'The following will be sent to the server: '+ 
                    isForm.getForm().getValues(true));
            }
        }
    }]
});

});




<b>ItemSelector</b><br />

<div id="itemselector"></div>

</form>


1个回答

你到火狐下去用 firebug看下意思具体信息, ie下面信息提供太少 可以的话发给我帮你看看Q3990995

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!