LongFeiFengWu
Technical User
I have the following script (let's call it script1):
<script language="VBScript">
Sub B1_onclick
'MsgBox "Did you make a sales attempt?",308
'IF 6 THEN Info.Submit()
'IF 7 THEN location.href "toolmidtop_savenosale.asp"
r = MsgBox ("Did you make a sales attempt?",308)
IF r = 6 THEN Info.Submit()
IF r = 7 THEN location.href "toolmidtop_savenosale.asp"
End Sub
</script>
I also have this script let's call it script2:
<select size="1" name="Work" style="font-family: Arial; font-size: 8pt">
<%
SQL = "SELECT * FROM unitDetails WHERE "
SQL = SQL & "Jurisdiction='ALL' "
objrec.open SQL,objcon,3,3
do while not objrec.eof
response.write "<option value='" & objrec("ID"
& "'>" & objrec("Type1"
If objrec("Type2"
<>"N/A" then response.write " - " & objrec("Type2"
response.write "</option>"
objrec.movenext
loop
%>
</select></font></td>
What I want to have happen is for Script1 to execute only if obrec("Type2"
from Script2 = Email. Anyway I can do that?
"If nothing within you stays rigid, outward things will disclose themselves. Moving, be like water. Still, be like a mirror. Respond like an echo." ~ Bruce Lee
<script language="VBScript">
Sub B1_onclick
'MsgBox "Did you make a sales attempt?",308
'IF 6 THEN Info.Submit()
'IF 7 THEN location.href "toolmidtop_savenosale.asp"
r = MsgBox ("Did you make a sales attempt?",308)
IF r = 6 THEN Info.Submit()
IF r = 7 THEN location.href "toolmidtop_savenosale.asp"
End Sub
</script>
I also have this script let's call it script2:
<select size="1" name="Work" style="font-family: Arial; font-size: 8pt">
<%
SQL = "SELECT * FROM unitDetails WHERE "
SQL = SQL & "Jurisdiction='ALL' "
objrec.open SQL,objcon,3,3
do while not objrec.eof
response.write "<option value='" & objrec("ID"
If objrec("Type2"
response.write "</option>"
objrec.movenext
loop
%>
</select></font></td>
What I want to have happen is for Script1 to execute only if obrec("Type2"
"If nothing within you stays rigid, outward things will disclose themselves. Moving, be like water. Still, be like a mirror. Respond like an echo." ~ Bruce Lee