Guest_imported
New member
- Jan 1, 1970
- 0
There's a FAQ about this question :
The problem is I can't use the solution suggested here.
For a school project, we must make an application by only using HTML/DHTML/VBSCRIPT/ASP/CCS/IIS/DAB/SQLServer
We can and may not use JAVASCRIPT for reason that it would be an advantage to some students in our class.
Below is some code that represents my problem (simplified - the actual code on server side calls a stored procedure on SQL-server ...)
my_asp.asp
---------------------------------------------------------
<%@ Language=VBScript %>
<%
Response.Write("Hello world"
%>
---------------------------------------------------------
start.asp (or HTML)
---------------------------------------------------------
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META name=VI60_defaultClientScript content=VBScript>
<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--
Sub button1_onclick
'1: call by clientscript
server.execute("my_asp.asp"
End Sub
-->
</SCRIPT>
</HEAD>
<BODY>
<INPUT type="button" value="Button" id=button1 name=button1><BR>
<%
'2: call by serverscript
server.execute("my_asp.asp"
%>
</BODY>
</HTML>
---------------------------------------------------------
So the '2: call by serverscript is executed
But logically '1: call by clientscript is not executed
Is there a way to work-around this ?
Thank you in advance,
Jurgen
The problem is I can't use the solution suggested here.
For a school project, we must make an application by only using HTML/DHTML/VBSCRIPT/ASP/CCS/IIS/DAB/SQLServer
We can and may not use JAVASCRIPT for reason that it would be an advantage to some students in our class.
Below is some code that represents my problem (simplified - the actual code on server side calls a stored procedure on SQL-server ...)
my_asp.asp
---------------------------------------------------------
<%@ Language=VBScript %>
<%
Response.Write("Hello world"
%>
---------------------------------------------------------
start.asp (or HTML)
---------------------------------------------------------
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META name=VI60_defaultClientScript content=VBScript>
<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--
Sub button1_onclick
'1: call by clientscript
server.execute("my_asp.asp"
End Sub
-->
</SCRIPT>
</HEAD>
<BODY>
<INPUT type="button" value="Button" id=button1 name=button1><BR>
<%
'2: call by serverscript
server.execute("my_asp.asp"
%>
</BODY>
</HTML>
---------------------------------------------------------
So the '2: call by serverscript is executed
But logically '1: call by clientscript is not executed
Is there a way to work-around this ?
Thank you in advance,
Jurgen