Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
This code should work:
<%
Function getSupName()
rs.Open cn.Execute("SELECT RFullName, RFirst, RLast FROM Resources WHERE RInactive = 0 AND (InstSup = 1) AND (EntityCode = 'SE')ORDER BY RFullName")
image = CStr(rs.Fields("RLast"))
Response.Write("<select id=InstSupName name=InstSupName onchange='changeImage(me)'
Do Until rs.EOF
Response.Write("<option value='" & rs.Fields("RFullName") & "'>" & rs.Fields("RFullName") & "</option>")
rs.moveNext
Loop
Response.Write("</select>"
End Function
%>
<html>
<head>
<script ID="clientEventHandlersVBS
<!--
Function changeImage(elem)
msgbox elem.value
sign = document.getElementById("s
sign.src = "../ASP/" + elem + ".bmp"
End Function
-->
</script>
</head>
<form id="FORM1" method="post" name="FORM1">
<body>
<table align="center" border="0" cellPadding="1" cellSpacing="1" width="100%" height="25%" valign="center" background tabIndex="0" >
<tr>
<td colSpan="2">
<p align="left"> &
<%=getSupName()%>
</p><td colSpan="2">
<img id="signature" name="signature" src="../ASP/Chris.bmp" height=50 width=200>
</td>
</tr>
</table>
</body>
</form>
</html>
You must send the dropdown to the function.
MrClean