questhaven
Programmer
Hi there - I would really appreciate any help anyone could give me. I am trying to get the value of the drop down in the form below, which I am submitting using javascript, and use it within an ASP function, prior to submitting the results of that ASP function to the opening page. I have included my code below. The form value would need to go between the code that says "##FORM VALUE NEEDS TO BE HERE##".
Is this even possible? I feel like I have tried everything!
<HEAD>
<%templateMSG= parseTokens(##FORM VALUE NEEDS TO BE HERE##, 743,3 ,0,0)%>
<script language=javascript>
function sendValue(s){
var selvalue = s.options[s.selectedIndex].value;
top.opener.document.NoteForm.message.value = ' <%=templateMSG%> ';
}
</script>
</HEAD>
<body>
<%
dim txtTemplate
Response.Write("<form name=selectform>"
Response.Write("<INPUT type=""hidden"" name=""action"" value=""2"">"
Response.Write("<INPUT type=""hidden"" name=""winOpen"" value="""">"
txtTemplate = cboGenericDropDownDetails("0", "txtTemplate","","exec sql_Templates"
txtTemplate = cboGenericDropDownSelect(txtTemplate, templateID)
Response.Write("<P>Choose a template: " & txtTemplate & " <input type=button value=""Add"" onClick=""sendValue(this.form.txtTemplate);"">"
Response.write("</form>"
%>
</body>
Is this even possible? I feel like I have tried everything!
<HEAD>
<%templateMSG= parseTokens(##FORM VALUE NEEDS TO BE HERE##, 743,3 ,0,0)%>
<script language=javascript>
function sendValue(s){
var selvalue = s.options[s.selectedIndex].value;
top.opener.document.NoteForm.message.value = ' <%=templateMSG%> ';
}
</script>
</HEAD>
<body>
<%
dim txtTemplate
Response.Write("<form name=selectform>"
Response.Write("<INPUT type=""hidden"" name=""action"" value=""2"">"
Response.Write("<INPUT type=""hidden"" name=""winOpen"" value="""">"
txtTemplate = cboGenericDropDownDetails("0", "txtTemplate","","exec sql_Templates"
txtTemplate = cboGenericDropDownSelect(txtTemplate, templateID)
Response.Write("<P>Choose a template: " & txtTemplate & " <input type=button value=""Add"" onClick=""sendValue(this.form.txtTemplate);"">"
Response.write("</form>"
%>
</body>