Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript or VBScript - WHICH ONE

Status
Not open for further replies.

BigM

Programmer
Aug 30, 2000
39
GB
Hi Each,

I am fairly new to web development and am wanting to know which of Javascript or VBScript I should use. I am assumimg each will have limitations/advantages but what are they?

Will using ASP force my hand down the VBScript route.

Any info appreciated.
 
The use of ASP does not lock you into VBScript. It's true that most server-side ASP is written in VBScript, but you can also use Javascript.

But if you are talking client-side (browser) Javascript, that has nothing to do with what happens on the server anyway, so you can take your pick. I recommend Javascript rather than VBScript for these reasons:

1. Unless you are doing highly customized scripts needint ActiveX components, there is nothing VBScript can to that Javascript cannot.

2. VBScript locks you into being compatible with Internet Explorer only. Javascript is an open standard being used on almost all browsers (not just Netscape and IE)

3. I personally tend to prefer the Javascript syntax over VBScript, and I've noticed often the same function accomplished in Javascript is smaller than the VBScript version. You can even see this in much of the sample code available at . Also, the syntax is more like C/C++, whereas VBScript is of course, like VB... again a closed standard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top