I include a thread clipping from HTML/CSS forum. This should
be simple to get working. I am having much difficulty:
--------------------------------------------
Tek-Tips Forums
AREA: Programmers/Languages
FORUM: HTML and CSS (Cascading Style Sheets)
SUBJECT: "Select Tag"
HANDLE: planman
POSTED ON: May 7
QUESTION:
I'm interested in finding out if anyone knows a way to get
the scrolling window created for Select Tags to "jump" for more than one keyboard character. I have Select Tags with hundreds of options and being able to type in the first character to select on is helpful, but what would be more helpful would be able to quick-type several characters to extend the search past the first character to the second and subsequent characters as with Microsoft Windows Explorer keyboard input for filename selection once the Name
button has been clicked on the Contents header bar...
I am not sure if this is an HTML limitation or a browser limitation. I'm currently using I.E. 5.0... any ideas or suggestions would be appreciated and save my users a lot of time...
-------------------------------------------------------------------
HANDLE: Mighty
POSTED ON: May 8, 2001
REPLY:
planman,
Try Jaredn's combobox at:
This does exactly what you are looking for. Mise Le Meas,
Mighty
-------------------------------------------------------------------
HANDLE: planman
POSTED ON: May 8, 2001
REPLY:
Thanks Mighty! :-D
I placed the files from the Zip Archive into the same directory as my ASP stuff and the demo ran fine. I write most of my ASP code using VBScript. I am trying to incorporate the ComboBox code and I'm running into some problems. I am using IE5.0 for a browser. I am told that ComboBox is undefined at the -->
dm=new ComboBox("dm"<-- line in the following code snippet.
Could you please help me pinpoint my ineptitude...:~/
---------------------------------------------------
<% Response.Buffer = True %>
<!--
Dummy1.asp
Selection of tasks for editing
-->
<!-- METADATA TYPE="typelib" UUID="00000200-0000-0010-8000-00AA006D2EA4" NAME="ADO Type Library" -->
<%
'Instantiate Recordset objects
Set rstTsk = Server.CreateObject("ADODB.Recordset"
Set rstPrg = Server.CreateObject("ADODB.Recordset"
'Define SQL query.
strSQLPrg = "SELECT * FROM Programs ORDER BY Program_Code"
'Open record sets using the Open method
'and use the connection established by the Connection object.
' rstPrg.Open strSQLPrg, conntemp
dtable = Request.QueryString("dtable"
Select Case dtable
Case "Tasks9900"
ctable = "Costs9900"
ttable = "R&D Program for 1999/2000"
eform = "TE9900.asp"
Case "Tasks0001"
ctable = "Costs0001"
ttable = "R&D Program for 2000/2001"
eform = "TE0001.asp"
Case "Tasks0102"
ctable = "Costs0102"
ttable = "R&D Program for 2001/2002"
eform = "TE0102.asp"
End Select
%>
<HTML>
<HEAD>
<TITLE>R&D Proposal Form</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script src="ieemu.js" language="JavaScript"></script>
<script src="ComboBox.js" language="JavaScript"></script>
</HEAD>
<BODY BACKGROUND="../../rdplan/paper.gif" BGCOLOR="#FFFFFF">
<!-- #include file = "header.inc" -->
<FONT COLOR='#0c0a77'><H2><%= ttable %></H2></FONT>
<H3>Task maintenance</H3>
All endorsements must be cancelled before a task can be edited.<P>
<FORM NAME='EF' ACTION='\scripts\company\<%= eform %>'>
<INPUT TYPE=hidden NAME="Category" VALUE="Existing">
<script language="JavaScript">
dm=new ComboBox("dm"
dm.add(
new ComboBoxItem("barge",1),
new ComboBoxItem("benluc",2),
new ComboBoxItem("benlieeeeck",3),
new ComboBoxItem("taco",4)
)
</script>
<%
If Request.Cookies("GODMode" = "True" Then
strSQLTsk = "SELECT Task, Project_Title FROM " & dtable & " ORDER BY Task"
rstTsk.Open strSQLTsk, conntemp
line2 = "All proposals appear in the list below<BR>"
... <etc>
-------------------------------------------------------------------
HANDLE: Klae
POSTED ON: May 8, 2001
REPLY:
all that combo box stuff is not JavaScript code. Klae
You're only as good as your last answer!
-------------------------------------------------------------------
HANDLE: planman
POSTED ON: May 10, 2001
REPLY:
I took the original code and imbedded it. In the original code there was no specification of language for scripting:
<script>
dm=new ComboBox("dm"
dm.add(
new ComboBoxItem("barge",1),
new ComboBoxItem("benluc",2),
new ComboBoxItem("benlieeeeck",3),
new ComboBoxItem("taco",4)
)
</script>
...
I just wish to make a simple enhancement but I'm stumped...
Perhaps I'll take this to the ASP forum... :-I
be simple to get working. I am having much difficulty:
--------------------------------------------
Tek-Tips Forums
AREA: Programmers/Languages
FORUM: HTML and CSS (Cascading Style Sheets)
SUBJECT: "Select Tag"
HANDLE: planman
POSTED ON: May 7
QUESTION:
I'm interested in finding out if anyone knows a way to get
the scrolling window created for Select Tags to "jump" for more than one keyboard character. I have Select Tags with hundreds of options and being able to type in the first character to select on is helpful, but what would be more helpful would be able to quick-type several characters to extend the search past the first character to the second and subsequent characters as with Microsoft Windows Explorer keyboard input for filename selection once the Name
button has been clicked on the Contents header bar...
I am not sure if this is an HTML limitation or a browser limitation. I'm currently using I.E. 5.0... any ideas or suggestions would be appreciated and save my users a lot of time...
-------------------------------------------------------------------
HANDLE: Mighty
POSTED ON: May 8, 2001
REPLY:
planman,
Try Jaredn's combobox at:
This does exactly what you are looking for. Mise Le Meas,
Mighty
-------------------------------------------------------------------
HANDLE: planman
POSTED ON: May 8, 2001
REPLY:
Thanks Mighty! :-D
I placed the files from the Zip Archive into the same directory as my ASP stuff and the demo ran fine. I write most of my ASP code using VBScript. I am trying to incorporate the ComboBox code and I'm running into some problems. I am using IE5.0 for a browser. I am told that ComboBox is undefined at the -->
dm=new ComboBox("dm"<-- line in the following code snippet.
Could you please help me pinpoint my ineptitude...:~/
---------------------------------------------------
<% Response.Buffer = True %>
<!--
Dummy1.asp
Selection of tasks for editing
-->
<!-- METADATA TYPE="typelib" UUID="00000200-0000-0010-8000-00AA006D2EA4" NAME="ADO Type Library" -->
<%
'Instantiate Recordset objects
Set rstTsk = Server.CreateObject("ADODB.Recordset"
Set rstPrg = Server.CreateObject("ADODB.Recordset"
'Define SQL query.
strSQLPrg = "SELECT * FROM Programs ORDER BY Program_Code"
'Open record sets using the Open method
'and use the connection established by the Connection object.
' rstPrg.Open strSQLPrg, conntemp
dtable = Request.QueryString("dtable"
Select Case dtable
Case "Tasks9900"
ctable = "Costs9900"
ttable = "R&D Program for 1999/2000"
eform = "TE9900.asp"
Case "Tasks0001"
ctable = "Costs0001"
ttable = "R&D Program for 2000/2001"
eform = "TE0001.asp"
Case "Tasks0102"
ctable = "Costs0102"
ttable = "R&D Program for 2001/2002"
eform = "TE0102.asp"
End Select
%>
<HTML>
<HEAD>
<TITLE>R&D Proposal Form</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script src="ieemu.js" language="JavaScript"></script>
<script src="ComboBox.js" language="JavaScript"></script>
</HEAD>
<BODY BACKGROUND="../../rdplan/paper.gif" BGCOLOR="#FFFFFF">
<!-- #include file = "header.inc" -->
<FONT COLOR='#0c0a77'><H2><%= ttable %></H2></FONT>
<H3>Task maintenance</H3>
All endorsements must be cancelled before a task can be edited.<P>
<FORM NAME='EF' ACTION='\scripts\company\<%= eform %>'>
<INPUT TYPE=hidden NAME="Category" VALUE="Existing">
<script language="JavaScript">
dm=new ComboBox("dm"
dm.add(
new ComboBoxItem("barge",1),
new ComboBoxItem("benluc",2),
new ComboBoxItem("benlieeeeck",3),
new ComboBoxItem("taco",4)
)
</script>
<%
If Request.Cookies("GODMode" = "True" Then
strSQLTsk = "SELECT Task, Project_Title FROM " & dtable & " ORDER BY Task"
rstTsk.Open strSQLTsk, conntemp
line2 = "All proposals appear in the list below<BR>"
... <etc>
-------------------------------------------------------------------
HANDLE: Klae
POSTED ON: May 8, 2001
REPLY:
all that combo box stuff is not JavaScript code. Klae
You're only as good as your last answer!
-------------------------------------------------------------------
HANDLE: planman
POSTED ON: May 10, 2001
REPLY:
I took the original code and imbedded it. In the original code there was no specification of language for scripting:
<script>
dm=new ComboBox("dm"
dm.add(
new ComboBoxItem("barge",1),
new ComboBoxItem("benluc",2),
new ComboBoxItem("benlieeeeck",3),
new ComboBoxItem("taco",4)
)
</script>
...
I just wish to make a simple enhancement but I'm stumped...
Perhaps I'll take this to the ASP forum... :-I