I'm just starting to learn ASP and I understand I need to use one of the two as my scripting language. My preference is Javascript because I'm also learning C++. What are the pros/cons of each?
You should only need to use JScript/Java Script if you're doing something client side with ASP. If the script is running server side, VBScript will work for both as once it's processed server side, straight HTML is returned to the client.
With ASP most things are done server side so either script will work and I would think that VBscript would fit in better since ASP, IIS, VBscript are all Microsoft ideas.
Actually both JScript and VBScript work just as well (performance wise). You can even use PERL script in your ASP pages if that's your hearts content. One of the benefits of using JScript is that it has better error trapping capabilities...
Since we're dealing with ASP which runs server-side (it will run equally well through nutscrape or IE) I would say VBScript. Client side learning vbscript is a total waste of time since it has limited or no support for nutscrape, but server-side it doesn't matter at all. I would say its worth learning vbscript for the server-side asp because most people writing asp will be using vbscript so its worth becoming accustomed to it. Of course any client-side validation or scripting should be done with Javascript unless you know for sure all clients will be using IE.
The vast majority of people I know who are programming with ASP are doing so with VBscript, I can only think of one guy using javascript for server-side ASP out of all the people I know
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.