Solved

comparison of scripting languages - best one for internet use?

Posted on 2003-11-13
2
988 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
ID: 9739811
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
ID: 9742817
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
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.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 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