You are here: Re: Stopping browser prompts in forms « HTML « IT news, forums, messages
Re: Stopping browser prompts in forms

Posted by Jeremy on 08/10/07 18:15

Christine Forber wrote:
> I have created a form that incorporates AJAX to provide suggestions from
> the database contents for the given field. The problem is that many
> browsers do their own "suggestions" based on previous values used for
> that field. These browser suggestions sometimes completely hide the AJAX
> suggestions. Is there some way to turn off this browser behaviour in the
> form? (Yes, I know how to do it with my browser, but if it is happening
> to me, it is happening to my customers and I want to stop that behaviour
> only for the AJAX enabled fields in this particular form.)
>
> Not sure if the solution is html or javascript, so sent this message to
> both groups.
>
> Thanks,
> Christine

One technique I have seen used to solve this issue is to slightly vary
the "name" of the input. For example, adding a short string of random
characters or numbers to the end of the "name" can cause the browser to
not realize that it is the same field for which it has remembered
previous values. This, of course, requires slight changes to
server-side code in order to properly retrieve the value using the
appropriate modified key.

Then again, it might be rather presumptuous of you to assume that your
customers would rather use YOUR suggestions than the previous values
that they have entered on your site and on others. Just something to
consider.

Jeremy

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация