Hybrid View

  1. #1
    Sencha User
    Join Date
    May 2012
    Location
    Weed, CA, US
    Posts
    18
    Answers
    2
    Vote Rating
    1
    justinzane is on a distinguished road

      0  

    Default Unanswered: How to allow browser to "remember" textfield values?

    Unanswered: How to allow browser to "remember" textfield values?


    Most browsers have a convience feature that "remembers" the last value(s) entered into a textfield. I've noticed that the Extjs 4 xtype: 'textfield' field I've been using do not trigger this browser feature. How can I enable/disable this browser convenience, especially for FF and Chrome, programatically?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,982
    Answers
    661
    Vote Rating
    453
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    You will need to use a combo and simply hide the trigger ... something like:
    http://dev.sencha.com/deploy/ext-4.0...um-search.html

    Regards,
    Scott.

  3. #3
    Sencha User
    Join Date
    May 2012
    Location
    Weed, CA, US
    Posts
    18
    Answers
    2
    Vote Rating
    1
    justinzane is on a distinguished road

      0  

    Default


    No, perhaps I wasn't clear. I'm not concerned with "auto-suggest" type behavior like the example you showed. I'm talking about the browser's ability to store and later recall what the user types into <input type='text'...> fields.

    For example, go to craigslist.org and type "developer" into the search box. Later, whether after a simple back navigation or after weeks, when you revisit that box and start typing "d", the browser, NOT the site, will suggest "developer" from your form history.

    With Ext JS 4 xtype:"textfield" fields, this does not happen. Why?

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,982
    Answers
    661
    Vote Rating
    453
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    This is the same premise of what I mentioned, except that you would have to store the entries in a cookie and recall them in a dropdown list.

    Instead of loading suggested data from a server, you would load past entries from the cookie.

    Regards,
    Scott.

  5. #5
    Sencha User
    Join Date
    May 2012
    Location
    Weed, CA, US
    Posts
    18
    Answers
    2
    Vote Rating
    1
    justinzane is on a distinguished road

      0  

    Default


    Scott, thank you for your quick replies. You are, however, missing the point of my query. I, the ExtJS dev, do not want my SCRIPTS TO DO ANYTHING to recall values. My observation is that something in the way Ext wraps or styles <input....> fields is interfering with the way that the browser interacts with plain HTML <input name="foo" /> fields. I am trying to determine how to change a parameter on the xtype: "textfield" object OR on the various .sass settings related to textfields and forms so that the basic HTML browser behavior of storing a history of field entries will continue to occur.

    In short, I want to know how to STOP extjs from changing the basic html form <-> browser interaction.

  6. #6
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,982
    Answers
    661
    Vote Rating
    453
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    I understand.

    Since these are custom controls, you will have to provide this feature yourself. If there is a way to override this and provide the action you are looking for, as a default browser behavior, I am not aware of how to do this.

    Scott.