|  | Posted by Christine Forber on 08/10/07 20:58 
Jeremy wrote:> 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.
 
 In this particular case, entering any value except one from the
 suggestions will end up in no hits for their search. So it does make
 sense. I agree that this might well not be the case for all forms.
 
 Christine
  Navigation: [Reply to this message] |