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
    36,795
    Vote Rating
    834
    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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi