Click here to Skip to main content
15,921,884 members
Home / Discussions / Web Development
   

Web Development

 
GeneralIIS Intranet Configuration Pin
Matt Gerrans23-Jun-05 10:08
Matt Gerrans23-Jun-05 10:08 
GeneralRe: IIS Intranet Configuration Pin
minhpc_bk23-Jun-05 17:45
minhpc_bk23-Jun-05 17:45 
GeneralRe: IIS Intranet Configuration Pin
Matt Gerrans28-Jun-05 7:50
Matt Gerrans28-Jun-05 7:50 
General.NET Validator & .focus() Pin
The Yellow Dart23-Jun-05 7:32
The Yellow Dart23-Jun-05 7:32 
QuestionHow to view or open PDF file located in some folder in the network in the server with the ASP.NET web page? Pin
Dotnetdeveloper0622-Jun-05 19:03
Dotnetdeveloper0622-Jun-05 19:03 
AnswerRe: How to view or open PDF file located in some folder in the network in the server with the ASP.NET web page? Pin
Christian Graus22-Jun-05 19:15
protectorChristian Graus22-Jun-05 19:15 
AnswerRe: How to view or open PDF file located in some folder in the network in the server with the ASP.NET web page? Pin
SandyTheGenius24-Jun-05 20:27
SandyTheGenius24-Jun-05 20:27 
GeneralChanging the response to an event Pin
Jesse Evans22-Jun-05 11:27
Jesse Evans22-Jun-05 11:27 
Hi, folks.

I'm want my web app to display a list of items (retrieved from a database) in a select box. In my main page I have the following:
<br />
<td bgcolor="#66ccff">Product Messages for:  <!--#include file="products_list.inc"--></td><br />


The included file is your typical code fragment that retrieves the data and dynamically builds the selector:
<br />
<%<br />
<br />
set objConn = Server.CreateObject("ADODB.Connection")<br />
objConn.ConnectionString ="driver={SQL Server};server=xidc-mrtline;database=motd;uid=sa;pwd=lmitfd; " 				<br />
objConn.Open<br />
<br />
strSql = "Select idnum, name from products;" <br />
<br />
set objRS= Server.CreateObject("ADODB.Recordset")<br />
objRS.Open strSQL ,objConn<br />
<br />
Response.Write "<select id=products_list name=products_list onchange='DisplayProductMOTD(this.options[this.selectedIndex].value, DateBox.value)'>"<br />
do while not objrs.EOF <br />
Response.Write "<option value=" & objrs("idnum") & ">" & objrs("name") & "</option>"<br />
<br />
objrs.MoveNext ' Movenext<br />
loop<br />
Response.Write "</select>"<br />
<br />
<br />
objRS.close<br />
set objRS =nothing<br />
<br />
objConn.close<br />
set objConn = nothing<br />
%><br />

Ok, so far, so good. When I change the selection, it calls the 'DisplayProductMOTD function and all is right with the world. Now it has occurred to me that I could use this same list in another context, but I want to call a different function for the onchange event. I've removed the explicit setting of the event from the include file and put it in an init function I have in my main page, products_list.onchange='DisplayProductMOTD(products_list.options[products_list.selectedIndex].value, DateBox.value)'; but I can't get it work.

What am I missing?

Thanks in advance for any help Smile | :)

'til next we type...
HAVE FUN!! -- Jesse
GeneralPlease help a newbie Pin
llp00na22-Jun-05 9:20
llp00na22-Jun-05 9:20 
GeneralRe: Please help a newbie Pin
llp00na23-Jun-05 23:29
llp00na23-Jun-05 23:29 
GeneralRe: window.open() window name Pin
Mattias Olgerfelt22-Jun-05 6:41
Mattias Olgerfelt22-Jun-05 6:41 
Generalget image from web page Pin
paulred21-Jun-05 10:49
paulred21-Jun-05 10:49 
GeneralRe: get image from web page Pin
minhpc_bk22-Jun-05 22:36
minhpc_bk22-Jun-05 22:36 
Questionhow to get text in a combobox Pin
BlackDice21-Jun-05 9:58
BlackDice21-Jun-05 9:58 
AnswerRe: how to get text in a combobox Pin
minhpc_bk22-Jun-05 18:01
minhpc_bk22-Jun-05 18:01 
GeneralBrowser Detect Pin
Rob Tomson21-Jun-05 8:47
Rob Tomson21-Jun-05 8:47 
GeneralRe: Browser Detect Pin
NeverHeardOfMe21-Jun-05 13:14
NeverHeardOfMe21-Jun-05 13:14 
GeneralRe: Browser Detect Pin
Rob Tomson21-Jun-05 14:03
Rob Tomson21-Jun-05 14:03 
GeneralJavascript, Remote Window Close, Firefox and IE Pin
Glenn E. Lanier II21-Jun-05 3:41
Glenn E. Lanier II21-Jun-05 3:41 
GeneralRe: Javascript, Remote Window Close, Firefox and IE Pin
J4amieC21-Jun-05 5:01
J4amieC21-Jun-05 5:01 
GeneralRe: Javascript, Remote Window Close, Firefox and IE Pin
Glenn E. Lanier II21-Jun-05 5:17
Glenn E. Lanier II21-Jun-05 5:17 
GeneralRe: Javascript, Remote Window Close, Firefox and IE Pin
Mattias Olgerfelt21-Jun-05 6:02
Mattias Olgerfelt21-Jun-05 6:02 
GeneralRe: Javascript, Remote Window Close, Firefox and IE Pin
Glenn E. Lanier II21-Jun-05 7:17
Glenn E. Lanier II21-Jun-05 7:17 
GeneralPrinting the background color of an HTML page while printing Pin
MaheshKumarV21-Jun-05 0:01
MaheshKumarV21-Jun-05 0:01 
GeneralWeb Envrionment Pin
LiYS20-Jun-05 21:42
LiYS20-Jun-05 21:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.