English 中文(简体)
在IE7不工作
原标题:Extjs combo not working in IE7

Ext js combo没有在IE7工作。 我需要这艘bo船像虚拟 com子(如 go角搜索)那样做。 它正在E9和FF,但不是E7。

这是我的法典:

SearchIncidentForm=new Ext.FormPanel ({

         border:false,
        renderTo: searchIncidentDiv ,   
        id:  searchIncidentForm ,    
        items : [{
            xtype: panel ,
            id : panelsearchIncident ,
            layout: column ,
            defaults:{
                    columnWidth:0.50,
                 labelAlign :  top ,
                 layout: form ,
                 border:false,
                 bodyStyle: margin-top:5px;  
            },
            border:false,
            items : [{    
                defaults:{anchor: 100% },
                    items:[{
                        id : "incidentId",
                        fieldLabel :  Incident Id ,
                        labelStyle:  color: #6C6C6C;width:85px;padding-top:7px;height: 22px; ,
                        xtype :  combo ,
                        store:incidentStores,
                        //style:  width:85px;height: 18px; ,
                        width:100,
                        allowBlank : false,
                        labelAlign:  top ,
                        displayField :  incidentId ,
                        valueField :  incidentId ,
                        selectOnFocus : true,
                        typeAhead : false,
                        mode :  remote ,
                        triggerAction :  all ,
                        editable: true,
                        msgTarget: qtip ,
                        listAlign :  tl-bl? ,
                        //anchor :  80% ,
                        minChars : 1,
                        hideTrigger:true,
                        hiddenName:  incidentId ,
                        listWidth:100,
                        listHeight:50,

                        submittValue:true,
                        listeners : {
                            specialkey : function(field, e){
                                var key=e.getKey();
                                if (key==e.ENTER) {
                                    incidentSearchButtonHandler();
                                }
                            },

                            beforequery : function(){
                            var val=Ext.getCmp( incidentId ).getValue();
                                if(isNaN(this.getEl().dom.value)){
                                    Ext.Msg.alert("","Please type numeric value");
                                }
                                else{
                                    Ext.getCmp( incidentId ).getStore().proxy.setUrl( getIncidentId.html?&query= +this.getEl().dom.value);

                                }
                            }
                        }

                    }]
                },{ 

                    items:[{
                        xtype :  button ,
                        text :  Search ,
                        style:  margin-top:19px;margin-left:20px;width:50px; ,                  
                        width: 35,
                        height:15,
                        handler : incidentSearchButtonHandler   
                    }]
                }]
        }]
    });
}

但它没有在独立实体工作。 当我报到时,显示有<代码>第Id。 这意味着它没有达到所分类的价值。 请提供帮助。

问题回答

I ve been bitten by this before with IE: you have an extra comma after the last element of your array:

items:[{

    submittValue:true,
    listeners : {
        specialkey : function(field, e){
            var key=e.getKey();
        if (key==e.ENTER) {
            incidentSearchButtonHandler();
        }
    },  // <------ Extra comma.  Delete it.
]}




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签