ASP VBscript vs Jscript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Harag

    ASP VBscript vs Jscript

    Hi All.

    I'm stating out doing some web developing. I was wondering which of
    the server side languages should I concentrate on and learn.

    I Know CSS, HTML, T-SQL

    I can look at the client javascript code and work out what it does but
    I can't really write it from scratch.

    I know mainly VBscript.

    I was wondering should I drop VBscript and learn Jscript then code
    both the client & server code in Javascript/Jscript

    I have a couple "CLASS" files in VBscript and was wondering how does
    Jscript do this ?

    What books should I get to learn server side Jscript? is it the same
    as client side? or is there a lot of differences.

    Thanks for any help, pros & cons.

    Al.
  • TsiuWeng Ng

    #2
    Re: ASP VBscript vs Jscript

    Hi,



    maybe this link might be useful to you

    Regards,
    TsiuWeng

    Harag <harag@REMOVETH ESECAPITALSsoft home.net> wrote in message news:<dk7ouvco6 gfgea9jtdnoh0hm sv25khngph@4ax. com>...[color=blue]
    > Hi All.
    >
    > I'm stating out doing some web developing. I was wondering which of
    > the server side languages should I concentrate on and learn.
    >
    > I Know CSS, HTML, T-SQL
    >
    > I can look at the client javascript code and work out what it does but
    > I can't really write it from scratch.
    >
    > I know mainly VBscript.
    >
    > I was wondering should I drop VBscript and learn Jscript then code
    > both the client & server code in Javascript/Jscript
    >
    > I have a couple "CLASS" files in VBscript and was wondering how does
    > Jscript do this ?
    >
    > What books should I get to learn server side Jscript? is it the same
    > as client side? or is there a lot of differences.
    >
    > Thanks for any help, pros & cons.
    >
    > Al.[/color]

    Comment

    • Peter Foti

      #3
      Re: ASP VBscript vs Jscript

      "Harag" <harag@REMOVETH ESECAPITALSsoft home.net> wrote in message
      news:dk7ouvco6g fgea9jtdnoh0hms v25khngph@4ax.c om...[color=blue]
      > Hi All.
      >
      > I'm stating out doing some web developing. I was wondering which of
      > the server side languages should I concentrate on and learn.
      >
      > I Know CSS, HTML, T-SQL
      >
      > I can look at the client javascript code and work out what it does but
      > I can't really write it from scratch.
      >
      > I know mainly VBscript.
      >
      > I was wondering should I drop VBscript and learn Jscript then code
      > both the client & server code in Javascript/Jscript
      >
      > I have a couple "CLASS" files in VBscript and was wondering how does
      > Jscript do this ?
      >
      > What books should I get to learn server side Jscript? is it the same
      > as client side? or is there a lot of differences.
      >
      > Thanks for any help, pros & cons.[/color]

      I would suggest that if you already know VBScript, then continue coding with
      what makes you comfortable. I suspect the majority of ASP pages are written
      using VBScript (which, btw, is the default scripting language unless changed
      on the server). I know this doesn't completely answer your questions, but
      my suggestion is work with what you are most comfortable with.

      Regards,
      Peter Foti


      Comment

      • freaky friday

        #4
        Re: ASP VBscript vs Jscript

        Use what you're comfortable with. There's really no clear advantage to
        using one over the other.

        However I will mention that the whole "use the same language in both
        client-side and server-side" argument doesn't carry a lot of water. In
        fact, I think it contributes to far more confusion than good.



        "Harag" <harag@REMOVETH ESECAPITALSsoft home.net> wrote in message
        news:dk7ouvco6g fgea9jtdnoh0hms v25khngph@4ax.c om...[color=blue]
        > Hi All.
        >
        > I'm stating out doing some web developing. I was wondering which of
        > the server side languages should I concentrate on and learn.
        >
        > I Know CSS, HTML, T-SQL
        >
        > I can look at the client javascript code and work out what it does but
        > I can't really write it from scratch.
        >
        > I know mainly VBscript.
        >
        > I was wondering should I drop VBscript and learn Jscript then code
        > both the client & server code in Javascript/Jscript
        >
        > I have a couple "CLASS" files in VBscript and was wondering how does
        > Jscript do this ?
        >
        > What books should I get to learn server side Jscript? is it the same
        > as client side? or is there a lot of differences.
        >
        > Thanks for any help, pros & cons.
        >
        > Al.[/color]


        Comment

        • Cowboy \(Gregory A. Beamer\)

          #5
          Re: ASP VBscript vs Jscript

          If you plan on using Microsoft's web parts (forget the actual name for the
          annoying little ASP scripts it installs), you are better to learn JScript,
          as these snippets are all coded in JScript. Why is this important? Every
          time the interpreter switches from VBScript to JScript, you get a perf
          penalty. If you code in VBScript, you are more likely to encounter numerous
          switches than you are with JScript (which will be 0 switches).

          --
          Gregory A. Beamer
          MVP; MCP: +I, SE, SD, DBA

          *************** *************** *************** *************** **********
          Think Outside the Box!
          *************** *************** *************** *************** **********
          "Harag" <harag@REMOVETH ESECAPITALSsoft home.net> wrote in message
          news:dk7ouvco6g fgea9jtdnoh0hms v25khngph@4ax.c om...[color=blue]
          > Hi All.
          >
          > I'm stating out doing some web developing. I was wondering which of
          > the server side languages should I concentrate on and learn.
          >
          > I Know CSS, HTML, T-SQL
          >
          > I can look at the client javascript code and work out what it does but
          > I can't really write it from scratch.
          >
          > I know mainly VBscript.
          >
          > I was wondering should I drop VBscript and learn Jscript then code
          > both the client & server code in Javascript/Jscript
          >
          > I have a couple "CLASS" files in VBscript and was wondering how does
          > Jscript do this ?
          >
          > What books should I get to learn server side Jscript? is it the same
          > as client side? or is there a lot of differences.
          >
          > Thanks for any help, pros & cons.
          >
          > Al.[/color]


          Comment

          • freaky friday

            #6
            Re: ASP VBscript vs Jscript

            > penalty. If you code in VBScript, you are more likely to encounter
            numerous[color=blue]
            > switches than you are with JScript (which will be 0 switches).[/color]

            what are you talking about? switches to and from what?


            Comment

            • Scott

              #7
              Re: ASP VBscript vs Jscript


              I agree that you should use what you're comfortable with,
              but what if you client is using JScript/JavaScript and not
              VBScript? What do you do then?

              I'm in a shop where JavaScript and VBScript are both being
              used so I have a choice, but the client wants us to focus
              on JavaScript. The claim is that JavaScript is more
              robust than VBScript, but I tend to disagree. I think
              both have their strengths and weaknesses for different
              things.

              I would be curious to know also what books are good to
              learn JavaScript from, since I have extensive VB
              experience and very little ASP experience. I will also be
              taking C# & Advance VB.net college classes in January, and
              I was curious to know in all three of these scripting
              languages are part of the .Net framework?

              [color=blue]
              >-----Original Message-----
              >"Harag" <harag@REMOVETH ESECAPITALSsoft home.net> wrote in[/color]
              message[color=blue]
              >news:dk7ouvco6 gfgea9jtdnoh0hm sv25khngph@4ax. com...[color=green]
              >> Hi All.
              >>
              >> I'm stating out doing some web developing. I was[/color][/color]
              wondering which of[color=blue][color=green]
              >> the server side languages should I concentrate on and[/color][/color]
              learn.[color=blue][color=green]
              >>
              >> I Know CSS, HTML, T-SQL
              >>
              >> I can look at the client javascript code and work out[/color][/color]
              what it does but[color=blue][color=green]
              >> I can't really write it from scratch.
              >>
              >> I know mainly VBscript.
              >>
              >> I was wondering should I drop VBscript and learn[/color][/color]
              Jscript then code[color=blue][color=green]
              >> both the client & server code in Javascript/Jscript
              >>
              >> I have a couple "CLASS" files in VBscript and was[/color][/color]
              wondering how does[color=blue][color=green]
              >> Jscript do this ?
              >>
              >> What books should I get to learn server side Jscript?[/color][/color]
              is it the same[color=blue][color=green]
              >> as client side? or is there a lot of differences.
              >>
              >> Thanks for any help, pros & cons.[/color]
              >
              >I would suggest that if you already know VBScript, then[/color]
              continue coding with[color=blue]
              >what makes you comfortable. I suspect the majority of[/color]
              ASP pages are written[color=blue]
              >using VBScript (which, btw, is the default scripting[/color]
              language unless changed[color=blue]
              >on the server). I know this doesn't completely answer[/color]
              your questions, but[color=blue]
              >my suggestion is work with what you are most comfortable[/color]
              with.[color=blue]
              >
              >Regards,
              >Peter Foti
              >
              >
              >.
              >[/color]

              Comment

              • Peter Foti

                #8
                Re: ASP VBscript vs Jscript

                "Scott" <anonymous@disc ussions.microso ft.com> wrote in message
                news:004f01c3cb e3$f09fb900$a50 1280a@phx.gbl.. .[color=blue]
                >
                > I agree that you should use what you're comfortable with,
                > but what if you client is using JScript/JavaScript and not
                > VBScript? What do you do then?[/color]

                Well, if you're designing for a client that specifically wants/needs
                JavaScript/JScript instead of VBScript, there's not much you can do about
                that. Many clients (IMO) don't know about the language that runs the ASP
                application, but if they specifically request JavaScript, then you have to
                give them what they want I suppose (or try to talk them into letting you
                code with VBScript, or tell them you can't meet their needs if you can't do
                it).
                [color=blue]
                > I'm in a shop where JavaScript and VBScript are both being
                > used so I have a choice, but the client wants us to focus
                > on JavaScript. The claim is that JavaScript is more
                > robust than VBScript, but I tend to disagree. I think
                > both have their strengths and weaknesses for different
                > things.[/color]

                Yes and no. JavaScript probably is a little more robust than VBScript. But
                the differences in an ASP environment are really not enough to put any real
                distance between the two options, and for the most part you should be able
                to do pretty much the same things with either language. And yes, they each
                have strengths and weaknesses... for example, if you need to do any sort of
                string manipulation, VBScript will probably be quicker and easier to write
                than JavaScript equivalents. But if the customer insists, there's not much
                you can do about it. If you have other guys in the shop that do JavaScript,
                then perhaps they should take this job.

                [color=blue]
                > I would be curious to know also what books are good to
                > learn JavaScript from, since I have extensive VB
                > experience and very little ASP experience.[/color]

                The O'Reilly book "JavaScript : The Definitive Guide" is a great book, both
                for learning and as a reference.
                [color=blue]
                > I will also be
                > taking C# & Advance VB.net college classes in January, and
                > I was curious to know in all three of these scripting
                > languages are part of the .Net framework?[/color]

                C#, VB.NET and JScript.NET are all languages that can be used with the .NET
                Framework.
                Good luck,

                Peter


                Comment

                • Scott

                  #9
                  Re: ASP VBscript vs Jscript

                  Thanks Peter.

                  [color=blue]
                  >-----Original Message-----
                  >"Scott" <anonymous@disc ussions.microso ft.com> wrote in[/color]
                  message[color=blue]
                  >news:004f01c3c be3$f09fb900$a5 01280a@phx.gbl. ..[color=green]
                  >>
                  >> I agree that you should use what you're comfortable[/color][/color]
                  with,[color=blue][color=green]
                  >> but what if you client is using JScript/JavaScript and[/color][/color]
                  not[color=blue][color=green]
                  >> VBScript? What do you do then?[/color]
                  >
                  >Well, if you're designing for a client that specifically[/color]
                  wants/needs[color=blue]
                  >JavaScript/JScript instead of VBScript, there's not much[/color]
                  you can do about[color=blue]
                  >that. Many clients (IMO) don't know about the language[/color]
                  that runs the ASP[color=blue]
                  >application, but if they specifically request JavaScript,[/color]
                  then you have to[color=blue]
                  >give them what they want I suppose (or try to talk them[/color]
                  into letting you[color=blue]
                  >code with VBScript, or tell them you can't meet their[/color]
                  needs if you can't do[color=blue]
                  >it).
                  >[color=green]
                  >> I'm in a shop where JavaScript and VBScript are both[/color][/color]
                  being[color=blue][color=green]
                  >> used so I have a choice, but the client wants us to[/color][/color]
                  focus[color=blue][color=green]
                  >> on JavaScript. The claim is that JavaScript is more
                  >> robust than VBScript, but I tend to disagree. I think
                  >> both have their strengths and weaknesses for different
                  >> things.[/color]
                  >
                  >Yes and no. JavaScript probably is a little more robust[/color]
                  than VBScript. But[color=blue]
                  >the differences in an ASP environment are really not[/color]
                  enough to put any real[color=blue]
                  >distance between the two options, and for the most part[/color]
                  you should be able[color=blue]
                  >to do pretty much the same things with either language.[/color]
                  And yes, they each[color=blue]
                  >have strengths and weaknesses... for example, if you need[/color]
                  to do any sort of[color=blue]
                  >string manipulation, VBScript will probably be quicker[/color]
                  and easier to write[color=blue]
                  >than JavaScript equivalents. But if the customer[/color]
                  insists, there's not much[color=blue]
                  >you can do about it. If you have other guys in the shop[/color]
                  that do JavaScript,[color=blue]
                  >then perhaps they should take this job.
                  >
                  >[color=green]
                  >> I would be curious to know also what books are good to
                  >> learn JavaScript from, since I have extensive VB
                  >> experience and very little ASP experience.[/color]
                  >
                  >The O'Reilly book "JavaScript : The Definitive Guide" is a[/color]
                  great book, both[color=blue]
                  >for learning and as a reference.
                  >[color=green]
                  >> I will also be
                  >> taking C# & Advance VB.net college classes in January,[/color][/color]
                  and[color=blue][color=green]
                  >> I was curious to know in all three of these scripting
                  >> languages are part of the .Net framework?[/color]
                  >
                  >C#, VB.NET and JScript.NET are all languages that can be[/color]
                  used with the .NET[color=blue]
                  >Framework.
                  >Good luck,
                  >
                  >Peter
                  >
                  >
                  >.
                  >[/color]

                  Comment

                  • Chris Barber

                    #10
                    Re: ASP VBscript vs Jscript

                    I used to be an ASP VBScript developer until a similar thread a few weeks
                    ago.

                    I tried using JScript in server-side ASP and since then I've dropped
                    VBScript entirely for web stuff since I can now code an entire library set
                    of functions and use them at both the server and client side. some of these
                    library routines are pretty complex and having to do them both ways was
                    beginning to get on my nerves. One such library is a couple of JScript
                    objects (using prototype etc.) that converts coordinate systems from LatLong
                    to UK National Grid and back.

                    Another one that I've been working on is a single JScript include file that
                    allows XSLT processing to HTML at either the server or the client without
                    any changes to code - it works so far (OK - there are a couple of minor
                    gotchas to work around).

                    So, all I can really say here is that keep VBScript under your belt but for
                    anything web oriented then spend the few minutes to ponder if an all JScript
                    solution will help reduce duplication.

                    Side Note:
                    I have to say that I'm unimpressed with the lack of intellisense for JScript
                    objects within Interdev - I really like the way that it does it for Class
                    definitions in VBScript and oh how I wish it were so with JScript objects!

                    Cheers,

                    Chris.

                    "Harag" <harag@REMOVETH ESECAPITALSsoft home.net> wrote in message
                    news:dk7ouvco6g fgea9jtdnoh0hms v25khngph@4ax.c om...
                    Hi All.

                    I'm stating out doing some web developing. I was wondering which of
                    the server side languages should I concentrate on and learn.

                    I Know CSS, HTML, T-SQL

                    I can look at the client javascript code and work out what it does but
                    I can't really write it from scratch.

                    I know mainly VBscript.

                    I was wondering should I drop VBscript and learn Jscript then code
                    both the client & server code in Javascript/Jscript

                    I have a couple "CLASS" files in VBscript and was wondering how does
                    Jscript do this ?

                    What books should I get to learn server side Jscript? is it the same
                    as client side? or is there a lot of differences.

                    Thanks for any help, pros & cons.

                    Al.


                    Comment

                    • Chris Barber

                      #11
                      Re: ASP VBscript vs Jscript

                      It does carry a lot of water but like all such statements needs to be taken
                      in context.

                      I (this is my personal experience) found that the switch from ASP VBScript
                      to JScript was easy and also gave a lot of flexibility in code reuse since
                      you can use the same .js file for both server-side and client-side usage
                      (within reason of course) in a lot of instances negating the need to code
                      things twice (on as VBScript and one as JScript).

                      Admittedly there are some instances where JScript is more difficult (some
                      specific cases with COM spring to mind) but these are generally easy to deal
                      with and a small foray into VBScript for a few lines is no big deal).

                      The support for arrays in JScript far outstrips VBScript (in my opinion
                      again) and if only for that I consider my own switch to ASP JScript to be
                      the right choice.

                      Database stuff is as-easy with JScript as it is with VBScript - I have a
                      number of working solutions quite happily using ADO / SQL Server stored
                      procedures etc. with no apparent ill effects.

                      My only bugbear with JScript is actually a go at Interdev - why oh why is it
                      not possible to have intellisense for JScript objects created using the
                      object.prototyp e functionality? No need to comment cos I know it ain't gonna
                      happen any time soon (does it do this in .NET perhaps?).

                      Chris Barber.

                      "freaky friday" <freaky@friday. net> wrote in message
                      news:e%236rmE9y DHA.4064@tk2msf tngp13.phx.gbl. ..
                      Use what you're comfortable with. There's really no clear advantage to
                      using one over the other.

                      However I will mention that the whole "use the same language in both
                      client-side and server-side" argument doesn't carry a lot of water. In
                      fact, I think it contributes to far more confusion than good.



                      "Harag" <harag@REMOVETH ESECAPITALSsoft home.net> wrote in message
                      news:dk7ouvco6g fgea9jtdnoh0hms v25khngph@4ax.c om...[color=blue]
                      > Hi All.
                      >
                      > I'm stating out doing some web developing. I was wondering which of
                      > the server side languages should I concentrate on and learn.
                      >
                      > I Know CSS, HTML, T-SQL
                      >
                      > I can look at the client javascript code and work out what it does but
                      > I can't really write it from scratch.
                      >
                      > I know mainly VBscript.
                      >
                      > I was wondering should I drop VBscript and learn Jscript then code
                      > both the client & server code in Javascript/Jscript
                      >
                      > I have a couple "CLASS" files in VBscript and was wondering how does
                      > Jscript do this ?
                      >
                      > What books should I get to learn server side Jscript? is it the same
                      > as client side? or is there a lot of differences.
                      >
                      > Thanks for any help, pros & cons.
                      >
                      > Al.[/color]



                      Comment

                      • Harag

                        #12
                        Re: ASP VBscript vs Jscript


                        The main reason I'm thinking of switching is that the client side code
                        is all javascript that I downloaded from "javascriptsour ce.com" and
                        altered to suit. I understand the basics of javascript to make the
                        changes I just don't know it fully as I code mostly VBscript during a
                        working day.

                        I don't have a "boss" or "client" to tell what to code in as its for
                        my own business so thats not really important.

                        For my project I'm still in the pen & paper design phase so not done
                        much coding. I do have several "VBscript Class" files that will need
                        to be changed.

                        Thanks for the info and points.

                        Al

                        On Fri, 26 Dec 2003 21:56:26 -0000, "Chris Barber"
                        <chris@blue-canoe.co.uk.NOS PAM> wrote:
                        [color=blue]
                        >I used to be an ASP VBScript developer until a similar thread a few weeks
                        >ago.
                        >
                        >I tried using JScript in server-side ASP and since then I've dropped
                        >VBScript entirely for web stuff since I can now code an entire library set
                        >of functions and use them at both the server and client side. some of these
                        >library routines are pretty complex and having to do them both ways was
                        >beginning to get on my nerves. One such library is a couple of JScript
                        >objects (using prototype etc.) that converts coordinate systems from LatLong
                        >to UK National Grid and back.
                        >
                        >Another one that I've been working on is a single JScript include file that
                        >allows XSLT processing to HTML at either the server or the client without
                        >any changes to code - it works so far (OK - there are a couple of minor
                        >gotchas to work around).
                        >
                        >So, all I can really say here is that keep VBScript under your belt but for
                        >anything web oriented then spend the few minutes to ponder if an all JScript
                        >solution will help reduce duplication.
                        >
                        >Side Note:
                        >I have to say that I'm unimpressed with the lack of intellisense for JScript
                        >objects within Interdev - I really like the way that it does it for Class
                        >definitions in VBScript and oh how I wish it were so with JScript objects!
                        >
                        >Cheers,
                        >
                        >Chris.
                        >
                        >"Harag" <harag@REMOVETH ESECAPITALSsoft home.net> wrote in message
                        >news:dk7ouvco6 gfgea9jtdnoh0hm sv25khngph@4ax. com...
                        >Hi All.
                        >
                        >I'm stating out doing some web developing. I was wondering which of
                        >the server side languages should I concentrate on and learn.
                        >
                        >I Know CSS, HTML, T-SQL
                        >
                        >I can look at the client javascript code and work out what it does but
                        >I can't really write it from scratch.
                        >
                        >I know mainly VBscript.
                        >
                        >I was wondering should I drop VBscript and learn Jscript then code
                        >both the client & server code in Javascript/Jscript
                        >
                        >I have a couple "CLASS" files in VBscript and was wondering how does
                        >Jscript do this ?
                        >
                        >What books should I get to learn server side Jscript? is it the same
                        >as client side? or is there a lot of differences.
                        >
                        >Thanks for any help, pros & cons.
                        >
                        >Al.
                        >[/color]

                        Comment

                        • Guest's Avatar

                          #13
                          Re: ASP VBscript vs Jscript

                          The rule of thumb is VBScript for ASP server side and Javascript for client.
                          One cannot avoid Javascript as VBScript is not supported by clients other
                          then Microsoft's (Netscape, Opera etc whcich still account for a sizable
                          part of customers one cannot ignore)


                          "Harag" <harag@REMOVETH ESECAPITALSsoft home.net> wrote in message
                          news:dk7ouvco6g fgea9jtdnoh0hms v25khngph@4ax.c om...[color=blue]
                          > Hi All.
                          >
                          > I'm stating out doing some web developing. I was wondering which of
                          > the server side languages should I concentrate on and learn.
                          >
                          > I Know CSS, HTML, T-SQL
                          >
                          > I can look at the client javascript code and work out what it does but
                          > I can't really write it from scratch.
                          >
                          > I know mainly VBscript.
                          >
                          > I was wondering should I drop VBscript and learn Jscript then code
                          > both the client & server code in Javascript/Jscript
                          >
                          > I have a couple "CLASS" files in VBscript and was wondering how does
                          > Jscript do this ?
                          >
                          > What books should I get to learn server side Jscript? is it the same
                          > as client side? or is there a lot of differences.
                          >
                          > Thanks for any help, pros & cons.
                          >
                          > Al.[/color]


                          Comment

                          • freaky friday

                            #14
                            Re: ASP VBscript vs Jscript

                            > The main reason I'm thinking of switching is that the client side code[color=blue]
                            > is all javascript that I downloaded from "javascriptsour ce.com" and
                            > altered to suit. I understand the basics of javascript to make the
                            > changes I just don't know it fully as I code mostly VBscript during a
                            > working day.[/color]

                            This doesn't explain why you want to use the same language for both
                            environments. In fact, the last statement sounds like an argument for
                            *staying* with VBScript on the server side.


                            Comment

                            • Harag

                              #15
                              Re: ASP VBscript vs Jscript

                              On Sat, 27 Dec 2003 16:43:20 -0500, "freaky friday"
                              <freaky@friday. net> wrote:
                              [color=blue]
                              >This doesn't explain why you want to use the same language for both
                              >environments . In fact, the last statement sounds like an argument for
                              >*staying* with VBScript on the server side.
                              >[/color]

                              I want to keep to using Javascript on the client side so I can try to
                              be compatable with at least NS 7 users (not sure about earlier
                              versions as I have IE6 NS7 installed).

                              I thought that if I switch to Jscript now then it would be easier to
                              learn client javascripting. but looking into it a bit more I'm
                              thinking more and more of staying with VBscript for the serverside and
                              learn the basics of javascript for the client side. I've found some
                              reports and comparison pages and they all seem to lead to VBscript.
                              I'm not convinced I should drop VBscript completly and change to
                              Jscript.

                              As you say the last statment does sound like an argument for staying
                              with VBscript. I seem to know more about VBscript than I thought I
                              did. :P

                              Thanks
                              Al.

                              Comment

                              Working...