1. #1
    Sencha User
    Join Date
    Apr 2008
    Posts
    141
    Vote Rating
    0
    armandoxxx is on a distinguished road

      0  

    Default Get focused element in a form

    Get focused element in a form


    Hey

    Is there a way to get focused element in a form ?

    Regards

    Armnado

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default get active element of your document

    get active element of your document


    Hi!

    Use document.activeElement, it is supported in all major browsers.

    For more details on document.activeElement browser compatibility, check this https://developer.mozilla.org/en/DOM..._compatibility


    If You are not still getting document.activeElement in your form, try to do following:-

    Code:
    if (!document.activeElement) { 
        //Step 1:- Add a "focus" event handler to all fields .
        //Step 2:- Record the last-focused field in a variable. 
        //Step 3:- Add a "blur" handler to clear the variable upon a blur event for the last-focused field.
    }
    Last edited by sword-it; 24 May 2012 at 10:52 PM. Reason: misspelling
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Thread Participants: 1

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..."