Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7737065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:54:10+00:00 2026-06-01T07:54:10+00:00

Good day, I am confused as to when I am using VBScript, Javascript, and

  • 0

Good day,

I am confused as to when I am using VBScript, Javascript, and JScript inside classic ASP.
I’ve been told that our environment uses JScript by default.
So when we create a blank page with our company’s standard includes, we just start coding in JScript.

Now I wish to use the json2.js file so that I can parse incoming JSON and send JSON out to clients/browsers.

I didn’t think that I needed to do anything special to use json2.js since it’s pure javascript. But I’m having issues placing the SCRIPT tag. Basically when and where do I need a new SCRIPT tag inside a classic ASP page?

I am getting a ‘JSON’ is null or not an object’ response. That leads me to believe that the JSON.parse() method is not even being recognized.

Thanks

<script language="javascript" runat="server" src="json2.js"></script>

   <%
         .... ..... some ASP Code in JScript

    %>
    <script language="javascript" runat="server">

        var lngBytesCount
            lngBytesCount = Request.TotalBytes

        var requestBody = BytesToStr(Request.BinaryRead(lngBytesCount));
        //var jsonObject=JSON.parse(\"{"answer":"ok"}\");   

        var jsonObject=JSON.parse(requestBody); 

        Response.ContentType = "application/json";

        for (var i in jsonObject){
            Response.Write(jsonObject[i]);
        }

        //var json = eval(requestBody);
        //Response.Write(json);
        Response.End()

    </script>

    <%
     .... ..... some ASP Code in JScript
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T07:54:11+00:00Added an answer on June 1, 2026 at 7:54 am

    It depends on whether you want to use the json2.js library client side or server-side.

    Classic ASP is a server-side technology that supports different languages, the most popuplar being vbscript and jscript. This is the same as ASP.NET which can be written in C# or VB.

    The code between <% and %> tags is executed server side. Also, blocks of code between <script runat="server"> and </script> run server side.
    If you leave out the runat="server" part, it runs client-side, and it is executed by the client browser.

    So to answer your question, if you want to use it server-side; use <script runat="server">, if you want o use it client-side use <script>

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good Day, We have migrated our web application to ASP.NET 2.0 from ASP.NET 1.1.
Good day, We just converted our web application .NET 1.1 to .NET 2.0. We
Good day, I'm having a problem with asp.net 2.0 viewstate. Basically, I want to
Good Day All we are trying to do is inside a trigger make sure
Good day everyone, this is one of those areas that is a little over
Good day everyone. I have a question about making and using derived classes of
Good day... I am a bit confused; what is the difference between a reduce
Good Day, I have a sql query that returns the following data: EmployeeID...Employee 555..........John
Good day! I know there has been lots of posts for this kind of
Good day, everyone. I'm using sableCC , and it takes as input a Reader

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.