1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    6
    Vote Rating
    0
    daitam is on a distinguished road

      0  

    Default IE8 focus event issue

    IE8 focus event issue


    Hello, I have problems with IE8 and Opera not reacting to focus event, when clicking on TextArea. Chrome and FF behaves as expected. Here is the code:
    Code:
    this.txtValue = "Blank textarea...";
    this.txtValue2 = "Blank textarea2...";
    this.txtCoords = new Ext.form.TextArea({
                        id: "txtCoords",
                        value: this.txtValue, 
                        listeners: {
                            scope: this,
                            focus: function(){
                            if(this.txtCoords.getValue() == this.txtValue || this.txtCoords.getValue() == this.txtValue2){
                                this.txtCoords.setValue("");
                                Ext.getCmp("txtCoordsId").getEl().dom.style.color = 'black';
                                };
                            },
                            blur: function(){
                            if(this.txtCoords.getValue() == ""){
                                    if(this.cmbKoordTipas.getValue() == "g1"){
                                        this.txtCoords.setValue(this.txtValue);
                                        Ext.getCmp("txtCoordsId").getEl().dom.style.color = 'grey';
                                    }else{
                                        this.txtCoords.setValue(this.txtValue2);
                                        Ext.getCmp("txtCoordsId").getEl().dom.style.color = 'grey';
                                    }    
                                }
                            }
                        },
                        style: "font-size:11px; color:grey;"
                    });
    I'm making a replacement for emptyText, because I need to dynamically change TextArea's value when it's empty. EmptyText submits to the server ant that is not that I want I appreciate any help on this issue. Maybe I should be using another event?
    p.s. Blur works fine.

  2. #2
    Sencha User
    Join Date
    May 2012
    Posts
    6
    Vote Rating
    0
    daitam is on a distinguished road

      0  

    Default


    Anyone?

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,735
    Vote Rating
    756
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    So the focus event is not firing? A quick test with IE8 I get the focus event firing for me using 3.4.1
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #4
    Sencha User
    Join Date
    May 2012
    Posts
    6
    Vote Rating
    0
    daitam is on a distinguished road

      0  

    Default


    Maybe more than one focus events fires? Any way to delay focus event when focusing?

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar