473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Stopping browser prompts in forms

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
Aug 10 '07 #1
8 1310
Christine Forber meinte:
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.)
Some browser know a "autocomplete"-attribute for input fields.
autocomplete="off" might help.

Gregor

--
http://www.gregorkofler.at ::: Landschafts- und Reisefotografie
http://www.licht-blick.at ::: Forum für Multivisionsvorträge
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Aug 10 '07 #2
Gregor Kofler wrote:
Christine Forber meinte:
>[AJAX for auto-completion is hindered by built-in auto-completion]
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.)

Some browser know a "autocomplete"-attribute for input fields.
autocomplete="off" might help.
If that was the case (I have not tested it), the attribute should be either
be declared (which however fails when parsed as tagsoup-HTML) or its value
set through a properly feature-tested DOM element property, because using it
as above would create invalid markup. Although no recent browser (I know
of) uses a validating (XML) parser, validity is crucial for a AJAX Web
application iff it uses XML or an XML application as underlying markup language.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Aug 10 '07 #3
Gregor Kofler wrote:
Christine Forber meinte:
>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.)

Some browser know a "autocomplete"-attribute for input fields.
autocomplete="off" might help.
I only want to indicate when this feature should be turned off. Checked
and autocomplete="off" works in both FireFox and IE.

Many thanks.
Christine
Aug 10 '07 #4
Thomas 'PointedEars' Lahn meinte:
Gregor Kofler wrote:
>Some browser know a "autocomplete"-attribute for input fields.
autocomplete="off" might help.

If that was the case (I have not tested it), the attribute should be either
be declared (which however fails when parsed as tagsoup-HTML) or its value
set through a properly feature-tested DOM element property, because using it
as above would create invalid markup.
Well, I never stated that it is valid. However, Google [1] uses this
proprietary attribute in their smart suggest version, and it is, well
....er... recommended in various AJAX publications. My own smart suggest
version seems to work without worrying about autocomplete attributes.

Gregor
[1]
http://www.google.com/webhp?complete=1&hl=en

--
http://www.gregorkofler.at ::: Landschafts- und Reisefotografie
http://www.licht-blick.at ::: Forum für Multivisionsvorträge
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Aug 10 '07 #5
Gregor Kofler wrote:
Thomas 'PointedEars' Lahn meinte:
>Gregor Kofler wrote:
>>Some browser know a "autocomplete"-attribute for input fields.
autocomplete="off" might help.
If that was the case (I have not tested it), the attribute should be either
be declared (which however fails when parsed as tagsoup-HTML) or its value
set through a properly feature-tested DOM element property, because using it
as above would create invalid markup.

Well, I never stated that it is valid.
And you have not stated that it is not Valid, hence my remark.
However, Google [1] uses this proprietary attribute in their smart
suggest version,
IBTD. That Google uses some code is hardly a sign of interoperability of
it. Google's code is compacted bloat-code.
and it is, well ...er... recommended in various AJAX publications.
Which only proves once more that there are no good books about JavaScript
and related concepts. Too many scriptkiddies think they are the real experts.
My own smart suggest version seems to work without worrying about
autocomplete attributes.
[...]
[1]
http://www.google.com/webhp?complete=1&hl=en
Testing a snippet in one Web browser or a number of Web browsers is hardly
an indication of its quality, especially regarding interoperability among
(X)HTML user agents.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
Aug 10 '07 #6
Thomas 'PointedEars' Lahn meinte:
Gregor Kofler wrote:
>Thomas 'PointedEars' Lahn meinte:
>>Gregor Kofler wrote:
Some browser know a "autocomplete"-attribute for input fields.
autocomplete="off" might help.
If that was the case (I have not tested it), the attribute should be either
be declared (which however fails when parsed as tagsoup-HTML) or its value
set through a properly feature-tested DOM element property, because using it
as above would create invalid markup.
Well, I never stated that it is valid.

And you have not stated that it is not Valid, hence my remark.
"Some browsers know something..." sounds pretty non-standard compliant
to me. Anyway, I should have pointed that out.
>However, Google [1] uses this proprietary attribute in their smart
suggest version,

IBTD. That Google uses some code is hardly a sign of interoperability of
it. Google's code is compacted bloat-code.
ACK. You don't even have to rate their JS efforts. A simple search
produces a webpage with 292 errors, no doctype declaration, deprecated
markup (center-tags) etc.
But then: the OP could have used this very search engine and gotten
everything that can be said to solve this problem...

Gregor

--
http://www.gregorkofler.at ::: Landschafts- und Reisefotografie
http://www.licht-blick.at ::: Forum für Multivisionsvorträge
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Aug 10 '07 #7
Gregor Kofler wrote:
Thomas 'PointedEars' Lahn meinte:
>Gregor Kofler wrote:
>>Thomas 'PointedEars' Lahn meinte:
Gregor Kofler wrote:
Some browser know a "autocomplete"-attribute for input fields.
autocomplete="off" might help.
If that was the case (I have not tested it), the attribute should be
either
be declared (which however fails when parsed as tagsoup-HTML) or its
value
set through a properly feature-tested DOM element property, because
using it
as above would create invalid markup.
Well, I never stated that it is valid.

And you have not stated that it is not Valid, hence my remark.

"Some browsers know something..." sounds pretty non-standard compliant
to me. Anyway, I should have pointed that out.
>>However, Google [1] uses this proprietary attribute in their smart
suggest version,

IBTD. That Google uses some code is hardly a sign of interoperability of
it. Google's code is compacted bloat-code.

ACK. You don't even have to rate their JS efforts. A simple search
produces a webpage with 292 errors, no doctype declaration, deprecated
markup (center-tags) etc.
But then: the OP could have used this very search engine and gotten
everything that can be said to solve this problem...
I tried a Google search, but was obviously not using the right search
terms as I didn't find the suggestion to use autocomplete. Which is why
I posted here. I know better than to just post here without at least
trying Google first!

Christine
Aug 10 '07 #8
Hi,
This is Purushotham, After being a lot of research i have found a
solution for turning off the automatic suggestions based on browser
cache values. The solution is set the "autocomplete" property of textbox
to off.

*** Sent via Developersdex http://www.developersdex.com ***
Aug 12 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: Ryan Stewart | last post by:
I'm working on a project to collect web application usage statistics. What are the recommended ways of detecting whether a browser is JavaScript enabled and/or capable? Obviously I can write a...
2
by: Sal Cifone | last post by:
Hey, Is there any way to turn off the query parm prompts? I have a report that must be printed for 53 different cities and the vba code loops thru a table and passes the value to a select query....
10
by: Conformix Sales | last post by:
Any thought about how can I stop a user from logging into the application multiple times. I am using forms authentication.
5
by: chris.hearson | last post by:
How do I programmatically prevent a service from stopping? I want to be able to keep my service running (started), under certain conditions, when a user tries to stop it. I have tried throwing an...
4
by: Peter Larsen | last post by:
Hi, I want to be able to show a file browser embedded on a form - a browser which is similar to the browser you get by SHBrowseForFolder(). Is that possible ? Thank you in advance. BR Peter...
2
by: John J. Hughes II | last post by:
In the MS report viewer example "Microsoft.Samples.ReportingServices.RSExplorer" they use the system default credentials to get the list of reports on the report server. The example them opens a...
1
by: imghani | last post by:
Hi all, I have developed an application in ASP.NET. I wanted that whenever a user comes to my website, it opens browser in F11 mode. I find the code to open browser in F11 mode (its javascript)...
4
by: Jeff | last post by:
Hi, I'd like to write Javascript that stops animated gifs from animating. On Firefox, at least, window.stop(); does the trick, although it stops everything on the page and is kind of...
4
by: =?iso-8859-1?B?S2VyZW0gR/xtcvxrY/w=?= | last post by:
Hi, i have a main thread an another worker thread. The main Thread creates another thread and waits for the threads signal to continue the main thread. Everything works inside a ModalDialog and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.