Solved

comparison of scripting languages - best one for internet use?

Posted on 2003-11-13
2
987 Views
Last Modified: 2010-04-06
Can someone explain to me the difference between JavaScript, VBScript, and JScript, at a very high level?  I am trying to figure out which one I should use on an internet web site that I'm building with Microsoft FrontPage.

I think I have to use JScript so that my website will be compatible with Netscape Navigator, which uses JavaScript.  Is that right?  

If you have to use JScript/JavaScript for compatibility, would anyone ever use VBScript, and if so, why?

Thanks!

Wendy
0
Comment
Question by:wendy326
2 Comments
 
LVL 5

Accepted Solution

by:
prohacx earned 125 total points
Comment Utility
Hi there!

VBScript and JScript are both Microsoft products, so using them in browsers like Netscape / Opera will not result in much... They are used because a lot of people are using IE.

When you want to program for the widest audience, use Javascript.

Also, you have to differentiate between server side languages and client side languages.

All three (JScript, VBScript and JavaScript) can be used on both the client side and the server side. VBScript is for example the default scritping language in ASP pages.

I mostly program ASP pages and program everything that is server related (connection to the database, ...) in server side VBScript. For all client side modifications (hiding divs, ...), I use Javascript.

It does not matter what server side language you use, because all of them will generate HTML and that's the only thing the browser needs. The Javascript inside the HTML is passed onto the browsre as well and executed when a user does some action (for example: click a button or hover over some object or so...)

So, the baseline is: use any server side language you want. For client side stuff, I strongly suggest Javascript.

Good luck!

0
 

Author Comment

by:wendy326
Comment Utility
Thanks for a very clear and concise answer - that's exactly what I needed to know.  Looks like I am about to learn Javascript!

Wendy
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now