E
Eric Tuomikoski
Im having trouble with server side ASP with Javascript.
I have an ADO recordset that returns a list of Times example: 7:00AM. I
then populate the option box with the results. (see below) The problem
is I have a variable called Item_Start, that contains a time that is
determined from another procedure. I simply wish to auto select the
option if it is found. This all happens when the page loads.
You can see below I tried, but it failed. How do I do this with
Javascript? Im not very good with Java at all..so please correct. Say
that item_start = 1:00AM and there IS a 1:00AM in one of the recordset
items ADO_RS("Times"). I simply wish to have the 1:00AM selected in the
dropdown when the page loads.
<%while (!ADO_RS.EOF)
{ %>
<option VALUE ="<%if (item_start == ADO_RS("Times"))
Response.Write(" selected
");%><%=ADO_RS("Times")%>"><%=ADO_RS("Times")%></option>
<% ADO_RS.movenext();}
ADO_RS.Close(); %>
thanks all !
Eric Tuomikoski
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
I have an ADO recordset that returns a list of Times example: 7:00AM. I
then populate the option box with the results. (see below) The problem
is I have a variable called Item_Start, that contains a time that is
determined from another procedure. I simply wish to auto select the
option if it is found. This all happens when the page loads.
You can see below I tried, but it failed. How do I do this with
Javascript? Im not very good with Java at all..so please correct. Say
that item_start = 1:00AM and there IS a 1:00AM in one of the recordset
items ADO_RS("Times"). I simply wish to have the 1:00AM selected in the
dropdown when the page loads.
<%while (!ADO_RS.EOF)
{ %>
<option VALUE ="<%if (item_start == ADO_RS("Times"))
Response.Write(" selected
");%><%=ADO_RS("Times")%>"><%=ADO_RS("Times")%></option>
<% ADO_RS.movenext();}
ADO_RS.Close(); %>
thanks all !
Eric Tuomikoski
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!