473,804 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

howto hidding/overriding history dropdown list of a textbox ?

Hi!

If the subject isn't clear:

Modern browsers provide an optional way of remembering user input in
textbox: user begin to type, and a list drop down just under the
textbox showing matching strings already typed.

I just want to provide my own droplist.

Is there an already existing component/script somewhere, and if not,
is there a way of either:
- place some div that cover that builtin list
- feed the builtins list with my own values

Thanks for any help or pointers.
--
dib
Jul 23 '05 #1
5 1997
didier Belot wrote:
Hi!

If the subject isn't clear:

Modern browsers provide an optional way of remembering user input in
textbox: user begin to type, and a list drop down just under the
textbox showing matching strings already typed.

I just want to provide my own droplist.
Then instead of a text input, use a select element.
Is there an already existing component/script somewhere, and if not,
See above.
is there a way of either:
- place some div that cover that builtin list
No.
- feed the builtins list with my own values


No.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq
Jul 23 '05 #2
Randy Webb wrote:
didier Belot wrote:
Hi!

If the subject isn't clear:

Modern browsers provide an optional way of remembering user input in
textbox: user begin to type, and a list drop down just under the
textbox showing matching strings already typed.

I just want to provide my own droplist.

Then instead of a text input, use a select element.


Yes. There is a good example, the nearest of what I want, at evolt.com:
http://evolt.org/article/Dynamically...ript/17/55035/

The problem with only a select is: the list can't be populated before
the user type in some chars; it's about the classical "suggest as you
type" ported to the web, with a distant MySQL server : we don't want to
load a select with 10000+ records, but as soon as we have 3/4 letters,
we can load a smaller list (using either xmlrpc or the iframe technique)
and begin offering suggestions to user...

(...)
is there a way of either:
- place some div that cover that builtin list


No.
- feed the builtins list with my own values


No.


last attempt ;-) : disable that builtin list ?
(I guess the answer is... no)

Anyway, thanks for yous answer.
--
dib
Jul 23 '05 #3
You could get rid of the built-in list by randomly generating the field
name...

"didier Belot" <di*@electrolin ux.com> wrote in message
news:cg******** **@aphrodite.gr ec.isp.9tel.net ...
Hi!

If the subject isn't clear:

Modern browsers provide an optional way of remembering user input in
textbox: user begin to type, and a list drop down just under the
textbox showing matching strings already typed.

I just want to provide my own droplist.

Is there an already existing component/script somewhere, and if not,
is there a way of either:
- place some div that cover that builtin list
- feed the builtins list with my own values

Thanks for any help or pointers.
--
dib

Jul 23 '05 #4
SomeGei wrote:
You could get rid of the built-in list by randomly generating the field
name...


And in the process, make it 100 times harder (if not more) to retrieve
the form fields when the form is submitted. Thats a bit like shooting
your foot off to get a splinter out of your toe :)

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq
Jul 23 '05 #5
didier Belot wrote:
Randy Webb wrote:
didier Belot wrote:
Hi!

If the subject isn't clear:

Modern browsers provide an optional way of remembering user input in
textbox: user begin to type, and a list drop down just under the
textbox showing matching strings already typed.
I just want to provide my own droplist.


Then instead of a text input, use a select element.

Yes. There is a good example, the nearest of what I want, at evolt.com:
http://evolt.org/article/Dynamically...ript/17/55035/
The problem with only a select is: the list can't be populated before
the user type in some chars; it's about the classical "suggest as you
type" ported to the web, with a distant MySQL server : we don't want to
load a select with 10000+ records, but as soon as we have 3/4 letters,
we can load a smaller list (using either xmlrpc or the iframe technique)
and begin offering suggestions to user...


If the list is that extensive, then you may want to look into breaking
it down into categories then. Maybe even a dependent select element
situation where the 4th (or so) depends on the 3rd depends on the 2nd
depends on the 1st. And yes, with some solid planning, it could be
implemented without a JS dependency.
(...)
is there a way of either:
- place some div that cover that builtin list

No.
- feed the builtins list with my own values

No.

last attempt ;-) : disable that builtin list ?
(I guess the answer is... no)


You guessed right :) Its a user preference and js can't override user
preferences (thankfully).

Other than what was suggested in another reply, of giving that text
field a random name. Use the onchange event handler to populate the
actual field before submission. Then you have introduced a needless
dependency on JS and annoyed your users that have the prefs set to show
that list :)
Anyway, thanks for yous answer.


Welcome.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq
Jul 23 '05 #6

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

Similar topics

20
12440
by: Dannyboyo | last post by:
I have what I hope is a simple request. I can't really code in javascript, but I am pretty good at cusomizing it with slight modifications. I code in ASP and HTML. I am trying to capture customer input of product names to put on custom labels we make. Some of the labels will have our product names on them, but the customer can add other products that we do not sell. So, on my product detail page I want a textbox that can have rows copied...
0
2011
by: Mark | last post by:
Hi, I have a datalist that contains a textbox as well as a dropdown list. For each single row in the datalist the associated dropdown list can have at least one value What I would like to be able to do is when a single update button is clicked the textbox value along with the associated dropdown value is printed for each row in the datalist. The number of rows in the datalist can vary. Here is my Datalist code
4
8098
by: Dica | last post by:
i've got a dropdown list with various options added to it. i want to add a button that allows the user to "Add New Option' which should create a blank row on the dropdown list and allow the user to type directly into it. is this possible?
4
2862
by: Ray Dukes | last post by:
What I am looking to do is map the implementation of interface properties and functions to an inherited method of the base class. Please see below. '**************************************************************************** ' Issues '****************************************************************************
2
4559
by: Mike Collins | last post by:
I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. It was asked by someone else what the autopostback was set to...it is set to false. Can someone show me what I am doing wrong and tell me the correct way? Thank you. In the page load event, I am doing the following:
2
2861
by: Peter | last post by:
ASP.NET 2003 In the DataGrid how do I select current cell value in the dropdown box when I click on the edit link, currently when I click on the edit link in the DataGrid the dropdown box appears in the cell, but allways the first item in the dropdown box is shown not the current cell value? How do I make the current value in the cell automaticaly be selected in the dropdown box.
6
1216
by: ulyx | last post by:
I have 2 dropdowns. How to hide ( on selection ) second dropdown if the selected value in first dropdown, is greater then the value in second dropdown ?
11
7402
by: eureka | last post by:
Hi All, I'm training in Servlets, JSP and JavaScript, I have a web page in which there's a "StudentName" textbox and below it is a "Names" Dropdown list. Initially the Textbox is empty and the Dropdown doesnt have any items.. The requirement is that as soon as one goes on typing the letters in the StudentName-textbox the corresponding matching names have to appear
2
3448
by: Max | last post by:
I recently moved to ASPnet Ext 3.5 What I can't get with Ajax and History browser managemet is this: User fills some fields (dropdown and textbox) on page 1 (all are in an update panel) User clicks Submit Button I write the data into a DB I add a history point with ScriptManager to be able to get back to this point with browser back button Page 2 is loaded with a response.redirect() command
0
9712
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10595
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10341
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9171
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7634
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5530
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4308
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.