Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to call VBScript sub from JavaScript function

Status
Not open for further replies.

Velosai

Programmer
Mar 19, 2012
1
0
0
GB
I am trying to call VBScript from within JavaScript, but it keeps erroring out saying "Object expect or is null". Any suggestions?

Code:
Code:
<script type="text/javascript">
  function pageInit() {
     fld.onkeyup = function () {
        //carry basic checks to ensure ID is complete
        eDirectory(userID);
     }
  }
</script> 

<script type="text/vbscript">
  Sub eDirectory(userID)
      'Process the request to LDAP server
  End Sub
</script>
All the code works (sorry I haven't put it all in here) and works fine in its own chunks. Its just this issue of referencing VBScript from JavaScript.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top