[Javascript] is there a way to hide the Select or Drop down b ox---Like this????
Scott.Wiseman
swiseman at remax-cahi.com
Tue Jun 11 18:54:44 CDT 2002
<%@ Language=VBScript EnableSessionState=False%>
<% OPTION EXPLICIT %>
<!--#include virtual="/includes/adovbs.inc"-->
<!--#include virtual="/testing/database/security.asp"-->
<!--#include virtual="/testing/database/connectionTOdatabase.asp"-->
<%
'---------------------------------------------------------------
'---------------------------------------------------------------
'---------------------GET offices FROM DATBASE------------------
'---------------------------------------------------------------
'---------------------------------------------------------------
dim OfficeNameNumber(2000,1),countarray
set cmd = nothing
set cmd = server.CreateObject("ADODB.COMMAND")
with cmd
.ActiveConnection = cnn
.CommandText = "get_active_offices"
.CommandType = adCmdStoredProc
end with
set rst = cmd.execute
DO WHILE not rst.eof
if rst("franchiseid") then
OfficeNameNumber(rst("franchiseid"),1) =
rst("officename")
countarray = rst("franchiseid") + 1
end if
rst.movenext
LOOP
response.write "<p>"& countarray
response.write "<p>"& ubound(OfficeNameNumber,1)
' ReDim Preserve OfficeNameNumber(countarray,1)
rst.close
set rst = nothing
set cmd = nothing
response.write "<p>"& OfficeNameNumber(789,1)
%>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
// var officearray[2000,1];
<% for x = lbound(OfficeNameNumber,1) to ubound(OfficeNameNumber,1) %>
officearray[x,1]= '<%=OfficeNameNumber(x,1)%>';
<%next%>
function getofficename(number)
{
for(x=0;x=<number;x++)
{
if(number == x)
{
alert(officearray[x,1]);
}
}
}
getofficename(789);
//-->
</script>
-----Original Message-----
From: Josiah Gordon [mailto:jgordon at directfile.com]
Sent: Tuesday, June 11, 2002 4:36 PM
To: javascript at LaTech.edu
Subject: RE: [Javascript] is there a way to hide the Select or Drop down
box
If it's a fairly small and static list just create a .js include with an
array and when the length of the phone field is the correct length (or on
when blur event is triggered) check the array.
--JG
-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Scott.Wiseman
Sent: Tuesday, June 11, 2002 3:29 PM
To: 'javascript at LaTech.edu'
Subject: [Javascript] is there a way to hide the Select or Drop down box
I want to be able to search for a value
and get the text part...
I have field...
pLease enter office number
when they do I want to give them the office name next to it...
but how can I store this information with out reloading the page...
so I thought I could put this into a drop down..
or maybe an array...
what do you think?
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list