[CLOSED] Behavior of 'Empty text' in different browsers

  1. #1

    [CLOSED] Behavior of 'Empty text' in different browsers

    Last edited by Daniil; Sep 13, 2012 at 3:46 PM. Reason: [CLOSED]
  2. #2
    Hi

    ExtJS uses native HTML5 placeholder if browser supports it
    Note that for browsers that support it, setting this property will use the HTML 5 placeholder attribute, and for
    older browsers that don't support the HTML 5 placeholder attribute the value will be placed directly into the input
    element itself as the raw value. This means that older browsers will obfuscate the emptyText value for
    password input fields.
    WebKit (Chrome) hides placeholder after input a value only
    http://instanceof.me/post/1539468949...-the-w3c-specs

    It is Chrome behaviour (not ExtJS/Ext.Net)
  3. #3
    Ok!

    My only problem is the Firefox and the empty text color changed to black when the field got focus...

    HTML 5 behavior too??

    Any workaround to this behavior?
  4. #4
  5. #5
    I updated FF to latest version (15.0.1) and now i am able to reproduce described behaviour
    At this moment, I can suggest to force do not use HTML 5 placeholders
    Add the following script to page head
    <script type="text/javascript">
            Ext.onReady( function(){
                Ext.supports.Placeholder = false;
            });
        </script>
  6. #6
    Hi Vladimir!!!

    Thanks a lot for your help!!!

    You think that I should disable placeHolder for all browsers? I think that I can disable placeHolder only when the browser is FireFox... You recommend this?
  7. #7
    You think that I should disable placeHolder for all browsers? I think that I can disable placeHolder only when the browser is FireFox... You recommend this?
    As you like, if you want you can disable fro Firefox only
  8. #8
    Ok!

    Thanks a lot, Vladimir

Similar Threads

  1. [CLOSED] NumberField zero empty text and value
    By kemalyigit in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 23, 2012, 11:30 AM
  2. combo box empty text
    By [WP]joju in forum 1.x Help
    Replies: 2
    Last Post: Oct 16, 2009, 4:19 AM
  3. grid empty text
    By [WP]joju in forum 1.x Help
    Replies: 3
    Last Post: Sep 28, 2009, 10:38 AM
  4. Text controls are empty
    By davidhoyt in forum 1.x Help
    Replies: 2
    Last Post: Dec 10, 2008, 5:52 AM
  5. Label with Empty Text
    By Jack in forum 1.x Help
    Replies: 1
    Last Post: Nov 07, 2008, 3:21 AM

Posting Permissions