English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I was looking at a web-based project code which is written in

ASP(using both Javascript and VBscript).

As i know Javascript is a client side language and VBscript is a

server side language.

I wanted to ask that could the programmer use,the Javascript for

the serverside programming too?

Or the common way for programming its server side,has been using the VBscript?

2006-09-05 04:25:36 · 4 answers · asked by runny 1 in Computers & Internet Programming & Design

So in this way i wonder,
Why has he used to different languages if he could use only one for both(clinet and server side) ?

2006-09-05 04:38:01 · update #1

4 answers

JavaScript and VBScript can BOTH be used for client side AND server side programming. In the context of server side programming with earlier versions of ASP, either JavaScript (aka JScript) or VBScript can be used. With the .NET platform, JScript, C#, and VB.NET can be used in the newer version of ASP. For client side (browser-based) programming, either JavaScript (JScript in IE) or VBScript can be used. My advice is stick with JavaScript for client side programming for greater portability. Also, I recommend using either C# or JScript with the newer ASP on the server side. Additionally, in the past, there have been other application servers made for use with server-side programming in JavaScript.

2006-09-05 05:39:54 · answer #1 · answered by MJQ 4 · 0 0

VBScript isn't serverside scripting. You can use it on the client-side just like JavaScript.

ASP allows you to use multiple languages on the server side to do things you wouldn't be able to otherwise. ASP.net even lets you use C# and Java I think. Which one you choose to use is your preference, but most books and tutorials will probably use VBScript so that may be your best bet if you are starting out.

2006-09-05 04:34:18 · answer #2 · answered by Richard M 2 · 0 0

You can combine javascript and server side programming using Ajax (Asynchronous JavaScript And XML).

Mastering Ajax, Part 1: Introduction to Ajax
http://www-128.ibm.com/developerworks/web/library/wa-ajaxintro1.html


AJAX Tutorial
http://www.w3schools.com/ajax/default.asp

2006-09-05 04:30:29 · answer #3 · answered by Anonymous · 0 0

hi Runy !,
Both JavaScript and VB Script have defined area.
Java Script is basically used for Client Side Validation and where as VB Script is used for database handling and Server Side Validation.
If you think that whether java Script could be used as server side script you are pretty true ,it can be used as server side script but whats the use of java script on server side if it cannot handle database queries!

2006-09-05 04:42:08 · answer #4 · answered by dark_prince 2 · 0 0

fedest.com, questions and answers