×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

OnClick will not goto Sub

OnClick will not goto Sub

OnClick will not goto Sub

(OP)
I am using InterDev 6 (SP5) under XP.
I am trying to execute a simple call to a subroutine after pressing a button....not happening.
Here is the asp code. What am I doing wrong!!!!!

<%@ Language=VBScript %>
<%
Option explicit
%>
<HTML>
<HEAD>
  <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
  <TITLE>Graham's Test bed</TITLE>
</HEAD>
  <BODY onload="document.GRSVAl.GrsText.focus();">

    <FORM name=GRSVAl ACTION=Graham1.asp METHOD=post>
        <P align=center><STRONG><FONT face=Arial size=4>Some Validation</FONT></STRONG>&nbsp;<BR></P>
        <P align=center><BR>Some Number: <INPUT Name=GrsText maxlength=9><BR></P>
        <P align=center><BR><INPUT TYPE=button Value="Check Something"  
           id=submit1 name=submit1 onclick= "call GrsSub">

 <SCRIPT language="VBScript">  
   Sub GrsSub
     MsgBox "You just hit the Button ..." ,vbCritical,"Debug"          
   End Sub    
 </SCRIPT>
 </FORM>

  </BODY>
</HTML>

RE: OnClick will not goto Sub

It is best to do your client-side scripting with JavaScript and only use VBScript for code that will run on the server.

RE: OnClick will not goto Sub

(OP)
We have an Intranet Server using IE only, so VBScript is the standard at present.
The fact is that I am using a current asp that runs daily on other machines in the net, and will add some basic enhancements. However, I have found that the existing button OnClick does not execute.
Thus the basic example.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close