Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Classic ASP with VBScript

Posted on 2013-11-25
1
Medium Priority
?
437 Views
Last Modified: 2013-12-02
I have a much older ASP with VB Script web based application that I have to maintain. One ASP page in question is dynamic HTML (HTML and VBScript) and two ASP pages that are VBScript classes

The first class is instantiated in the Dynamic HTML ASP page while the second class has to be instantiated in the first class. In order for the instantiated object to write HTML, a Response.Write is used (Not my choice, it was written long before I showed up).

In the first instantiated object, if I instantiate the second class outside of any Response.Write statements, it works. However I have to allow the user to click a button that calls a method in the second instantiated object so I have to use Response.Write

I have tried creating the instantiated second class and the call to a method in the object in it's own function and having the OnClick call the function but I can't seem to be able to get this to work.

I was told that this might be possible by using a JavaScript function in the middle of the VBScript like:

VBScript...
%>

<Script language="javascript">

    Function MyFunction()
    {
       Call to VBScript function
     }
</script>

<%
VBScript...

Is this possible? If so do you have a simple example?
0
Comment
Question by:AmbassadorSpock
[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 84

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 39676287
Just write the second class so you can get a value from it that you can use in the Response.Write statement.  I can't see the javascript in the middle of VBscript working.
0

Featured Post

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

604 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