Is there a way of calling a vbScript Sub Routine using OnClick?

I have a very complex error checking routine and I am not familiar enough with Java Script like I am with vbScript. I have worked with this for over 12 hours and I am stuck!

<Input Type="Button" Value="Record Vote" Name="V1" OnClick=<%"Call AddVotes()"%>>

<%Sub AddVotes()
Response.Write "Add Votes Called"
End Sub%>

Can this be done? If it can what am I doing Wrong

Re: Call vbScript SubRoutine with OnClick by name

name
Thu Jun 17 03:03:55 CDT 2004

Your construction only 'prints' the command to the client.


You ought to be looking for code or some else besides

"Visual".

Don't yo get it ?

===========

Visual is what people buy from MS.

--------------

And you have nothing to offer.









"Len" <Len@discussions.microsoft.com> wrote in message
news:19DBF471-05E0-4AD5-9C00-A0BC736409C8@microsoft.com...
> Is there a way of calling a vbScript Sub Routine using OnClick?
>
> I have a very complex error checking routine and I am not familiar enough
with Java Script like I am with vbScript. I have worked with this for over
12 hours and I am stuck!
>
> <Input Type="Button" Value="Record Vote" Name="V1" OnClick=<%"Call
AddVotes()"%>>
>
> <%Sub AddVotes()
> Response.Write "Add Votes Called"
> End Sub%>
>
> Can this be done? If it can what am I doing Wrong
>
>
>