I want use the serverside Function a and client sub Button1_onclick together when the button1 is clicked,can I do this

Thank

The following is the code
<%@ language = vbscript % ><
Function
dim cn,cmd,rs
....................
End functio
%><Script language=vbscript
sub button1_oncli

end su
</script><html
.......
<input id=button1 type=button name =button1
.......
<Html>

Re: Can I use a server function and a client funtion in a button click Event? by dlbjr

dlbjr
Thu May 27 16:25:06 CDT 2004

Save this as an htm and try it

<html>
<head>
<title>Test Page</title>
<script type="text/javascript" language="JavaScript">
function hitserverfunction() {
document.body.style.cursor='wait';
var XMLHTTP = new ActiveXObject( "Microsoft.XMLHTTP" );
var sURL = "http://www.dlbjr.com/test.asp"
XMLHTTP.open( "POST", sURL, false );
XMLHTTP.send();
result.innerHTML = XMLHTTP.responseText;
document.body.style.cursor='auto';
}
</script>
</head>
<body>
<input onclick="hitserverfunction();" id="Button1" type="button" value="Process" name="Button1">
<br/>
<br/>
<div id="result"></div>
</body>
</html>

'from dlbjr

'Unambit from meager knowledge of inane others,engender uncharted sagacity.