Solved

How to call a VbScript Function using classic ASP

Posted on 2006-10-23
1
7,887 Views
Last Modified: 2009-12-07
How do you call a VBScript function in Classic ASP.  I want to call the following function.  Also, can you mix VBScript with javascript within the same .asp program?  I am assuming you can as long you separate and define language script <script language="javascript"> or <script language="VBScript">.

<%
  xmldata = Base64EncodeBinary(oXML.xml)    ???? How do you call a VBScript function?
  oXML.save strXMLFile  
  response.redirect(strFilename)  
%>


Function Base64EncodeBinary(inData)
  Base64EncodeBinary = Base64Encode(BinaryToString(inData))
End Function
0
Comment
Question by:Hojoformo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
arvanhalleorg earned 500 total points
ID: 17789863
Dim result
result = Base64EncodeBinary(whateverdata)

or

Call Base64EncodeBinary(whateverdata)

as for the javascript/asp mix

function testfunc(){
<!--
     <%for x = 0 to intCount%>
            document.getElementById("txt<%=x%>").value=<%=x%>;
     <%next%>
//-->
}

Hope that helps
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Select only the top record in a left join 13 51
Cannot open file from ASP if user is "logged in" 13 41
Executing a script on a timer online 5 45
ASP exit 10 34
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question