473,395 Members | 1,761 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,395 software developers and data experts.

List does not allow to type text?

vikas251074
198 100+
I am using following code to create list

Expand|Select|Wrap|Line Numbers
  1.           <tr>
  2.             <td align="right">MIS No : </td>
  3.             <td>
  4.               <select name="mis_no" style="width:250px ">
  5. <%              set rs = conn.execute("select a.mis_no, a.seq_no, a.lot_no, b.item_description from item_procurement_history_dtl a, item_master b where a.status = 'D' and b.item_code = a.item_code order by a.item_code, substr(mis_no, instr(mis_no, '/', -1)+1)")
  6.                 do while not rs.eof%>
  7.                   <option value="<%=rs("mis_no")%>"><%=rs("mis_no")%></option>
  8. <%                rs.movenext
  9.                 loop%>
  10.               </select>
  11.             </td>
  12.           </tr>
But this code does not allow user to type some text. As soon as the user types text, common list element should be displayed from oracle table in list.
Is it possible?

Thanks and regards,
Vikas
Jun 10 '08 #1
10 1826
DrBunchman
979 Expert 512MB
Hi Vikas,

Do you mean that when the user types a letter the value selected in the drop down will change to the first item that begins with that letter?

Dr B
Jun 10 '08 #2
vikas251074
198 100+
Yes, exactly like that.

Thanks and regards,
Vikas
Jun 11 '08 #3
DrBunchman
979 Expert 512MB
In theory, it should do that already.

Can you do an experiment and create a drop down list manually and see if it works when you try it on that? It shouldn't make any difference whether it's a database generated drop down list or a simple html one so if it works on one it should work on the other.

Let me know what happens,

Dr B
Jun 11 '08 #4
vikas251074
198 100+
Can I create such a list which allow user to type text also and display list element which is common to typed text?

Or simply can I create such a list which only allow to user to type text.

Thanks and regards,
Vikas
Jun 12 '08 #5
DrBunchman
979 Expert 512MB
Vikas, I'm still a little bit confused about exactly what you want.

Once you type a letter on the keyboard with the focus on an html drop down list (even one generated by ASP code) the list should select the first option that begins with that letter - are you saying that your drop down isn't doing this?

Or are you talking about a combo box where you can type text in a textbox which is also a drop down list? If so then this control cannot be created with html - there are some javascript solutions that go some way to mimicing the behaviour but I've not seen any that are perfect.

Dr B
Jun 13 '08 #6
vikas251074
198 100+
Yes sir, I am talking about combo box. Thanks for suggestion. Now I think either to stop this here or try to explore in Javascript forum. Am I right, sir?

Thankd and regards,
Vikas
Jun 13 '08 #7
DrBunchman
979 Expert 512MB
Yes you could give it a try there. Take a look at these first as you may find something which helps you.

Good luck finding a solution.

Dr B
Jun 13 '08 #8
vikas251074
198 100+
It is not useful. Anyway I will stop this thread now. I will not search any more about combo box.

Thanks and regards,
Vikas
Jun 13 '08 #9
jhardman
3,406 Expert 2GB
I don't think he's talking about a combo box, although that might give him the effect he wants. It sounds to me like he is asking for a text box that suggests words based on the first letter or two that he types in.

If this is what you are looking for, you can populate the list of options from a db using ASP but you will need a client-side technology to make the suggestions appear on the screen (this is also what DR.B. was getting at suggesting you use Java). You can probably find boiler-plate code for this using Javascript or a Java applet, but you would have to know the name for that effect in order to search for it, and I am not sure what that is called.

Let me know if this helps.

Jared
Jun 15 '08 #10
vikas251074
198 100+
Now I think I can do this by using AJAX method.
I should use onkeyup() event in the input tag and then take this value and get the list display matching this entry.

I will try my best to do this way.

Thanks and regards,
Vikas
Jun 20 '08 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

16
by: David Bear | last post by:
I know there must be a better way to phrase this so google understands, but I don't know how.. So I'll ask people. Assume I have a list object called 'alist'. Is there an easy way to create a...
6
by: hsomob1999 | last post by:
so i have a <ul> and I allow the user to append items to it. The problem is that on mozilla the <span class="line"> which is just a line to divide the sections gets overlaped and doesnt move down...
4
by: John Wildes | last post by:
Hello I have a small program that I've created to generate accounting statements out of our policy managment system. The first part of the process is selecting the customer to create the...
35
by: Thierry Loiseau | last post by:
Hello all, and Happy end year 2005 ! Well, I would like to obtain a list of all JavaScript var statement, With "for...in" perharps ? That is bellow my recent test here, but the problem is...
4
by: jgabbai | last post by:
Hi, What is the best way to white list a set of allowable characters using regex or replace? I understand it is safer to whitelist than to blacklist, but am not sure how to go about it. Many...
5
by: garfy | last post by:
Hi i get this error in validation Line 22 column 6: document type does not allow element "title" here. <title>Seo Web Design Los Angeles - Web Design And Search Engine Optimization L ...
7
by: bonk | last post by:
Ist there a collection that holds its data sorted (i.e. inserts items sorted) AND allows to have duplicate values (by wich is sorted) ? I would like to store elements in that collection wich should...
6
by: blouie | last post by:
Is there a way that a bound ddl control can: 1. display the bound data, even if it does not match a selection in the DDL? 2. allow the user to enter something other than the look up values? I...
2
by: =?Utf-8?B?RHJEQkY=?= | last post by:
I understand that the Value put into a DataGridViewComboBoxCell has to be a member of the Items list or an exception is thrown. I also understand that you can override that exception by handling...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.