Javascript or VBscript?

downhiller80

Platinum Member
Apr 13, 2000
2,353
0
0
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?

Seb
 

JavaScript is "open" while VBScript is Microsoft only. I would go with JavaScript myself.
 

DAM

Diamond Member
Jan 10, 2000
6,102
1
76
im not sure about netscape handling VB, but i would go with jscript also, its more stablished and its widely supported.






dam(happy hurting)
 

KarsinTheHutt

Golden Member
Jun 28, 2000
1,687
0
0
Java rules, VB is spaghetti! The general consensus is that VB is good only if you need a win32 app in a hurry!
 

I want to program C# on the PocketPC using .NET. MSDN Magazine is like Playboy to me.
 

Rogue

Banned
Jan 28, 2000
5,774
0
0
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.
 

downhiller80

Platinum Member
Apr 13, 2000
2,353
0
0
A couple of you are saying that JScript is less MS than VBScript. Am I wrong in thinking that JScript IS microsoft's implementation of JavaScript.

Also I heard it's hardly related to Java at all . . .

Why is there no C++Script? What does "script" mean as such?

Seb
 

slipperyslope

Banned
Oct 10, 1999
1,622
0
0
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.

Jim
 

MegalodoN

Senior member
Oct 9, 1999
557
0
0
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...

 

StageLeft

No Lifer
Sep 29, 2000
70,150
5
0
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 :)