SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    I'm not a human
    Join Date
    Aug 2006
    Location
    India
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with the browser stored data (form fields)!

    hi

    i'm having a form in which a text field has a js function which lists the name of the customer by searching the letters typed in the field.. (like the one on gmail mail to column)

    The js funtion is working well and there's no problem until i activated the store data options in the browser.

    Once i use the forms the data entered before in the form fields are stored by the browser and they are gets listed over the div that is listed by the invoked js function. i want to restrict the browser not to list the stored form data for that field or even restrict the storage of data for that particular field..

    Can anyone help on this?
    Regards,
    Vijay
    Follow me on twitter @vijaycbe
    World Holiday Calander || My Cricket Blog

  2. #2
    I'm not a human
    Join Date
    Aug 2006
    Location
    India
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Has anyone solutions for this problem?

    Please , i'm still stranded!
    Regards,
    Vijay
    Follow me on twitter @vijaycbe
    World Holiday Calander || My Cricket Blog

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    You need to turn off the option to store form field input in your browser if you don't want it popping up. Each browser owner gets to make that choice themselves as to what inputs their browser remembers for them.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  4. #4
    I'm not a human
    Join Date
    Aug 2006
    Location
    India
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ya you are right.

    But i'm in need of restricting the display of stored data for the user for the page.
    (I'm developing a page for a site. i'm not asking for myself)

    I want to set the restriction as a default property for that particular field.
    Regards,
    Vijay
    Follow me on twitter @vijaycbe
    World Holiday Calander || My Cricket Blog

  5. #5
    SitePoint Zealot tragu's Avatar
    Join Date
    Sep 2002
    Location
    Canada
    Posts
    193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Set the "autocomplete" attribute to "off" for the field. For example, if you want to disable data stored by the browser from appearing in a text field, you can do something like the following:

    <input type="text" name="name" autocomplete="off" />

    Hope it helps.

    Thuva

  6. #6
    I'm not a human
    Join Date
    Aug 2006
    Location
    India
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Thuva...

    It's working nicely and i feel free now!!
    Regards,
    Vijay
    Follow me on twitter @vijaycbe
    World Holiday Calander || My Cricket Blog


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •