473,414 Members | 1,980 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Client Side Vs Server Side Java Script

Hi Folks,

I am new for this group. I want to clarify one thing what's a basic
difference between Client Side Java Script and Server Side Java
Script. how we can differentiate it. Why we called this kind of script
"Server Side Java Script".

I am in confusion because according to lots of web developer Java
Script is a client side scripting language. We can not say it Server
Side Java Script.

So let's have a discussion over this topic. Any clarification abt this
would be appreciable.

Thanks in advance

Jun 28 '07 #1
5 13086
This sounds your homework question.

Jun 28 '07 #2
On 28 Jun, 07:59, Ankur <khar...@gmail.comwrote:
Hi Folks,

I am new for this group. I want to clarify one thing what's a basic
difference between Client Side Java Script and Server Side Java
Script. how we can differentiate it. Why we called this kind of script
"Server Side Java Script".

I am in confusion because according to lots of web developer Java
Script is a client side scripting language. We can not say it Server
Side Java Script.

So let's have a discussion over this topic. Any clarification abt this
would be appreciable.

Thanks in advance
Fundamentally there are not two different specifications of
JavaScript, one for the client and one for the server: it is the same
JavaScript, just run in a different context.

Your starting point is the language specification, which is
formalised as "ECMAScript" - http://www.ecmascript-lang.org/. It is
currently at Edition 3, but Edition 4 (backwards compatible) is in the
pipeline.

Any application wishing to use ECMAScript must create its own
implementation of the language specification.

FireFox (Mozilla, Netscape) have their implementations (Rhino and
Spidermonkey) of Edition 3, and their current version is JavaScript
1.7 I believe.

Microsoft's implementation is called JScript, currently at version
5.6.

Edition 4 (which introduces namespaces, classes etc) is not yet
formally implemented, although ActionScript (Adobe Flash), and
JScript.NET (Microsoft .NET) implement substantial parts of it.

Any differences you encounter in different language implementations
will largely be down to how much of Edition 3 (or 4) has been
implemented, and whether the implementer has added anything else
outside the formal specification.

In terms of implementations in browsers, you can rely on all of the
latest browsers now having virtually complete implementations of
Edition 3.

In terms of "client side" or "server side", this is a question about
how ECMAScript is *used*, not what it is, or is not. The language
specification says nothing about the environment in which it is run.
>From my understanding:-
(a) Client Side

When scripts are downloaded over the internet or an intranet by a web
browser as part of a web page, and run in that web browser, that usage
is termed "client side".

Those scripts cannot talk to the server from which they were
downloaded, except indirectly through some remote scripting means,
such as the XMLHttpRequest object.

Client side usage is by far the predominant usage of JavaScript.

(b) Server Side

Where you have a program running on a web server to dynamically
generate your web pages, talk to databases etc, then this is known as
"server side scripting" (http://en.wikipedia.org/wiki/Server-
side_scripting).

Whether ECMAScript is used as a scripting language on the server
depends what program you are using.

The main two I am aware of that use ECMAScript are classic ASP and
ASP .NET

If you are using classic ASP, then JScript 5.6 will be available (as
well as VBScript), although the Sun One ASP Server uses a buggy
JScript 5.1 implementation.

In relation to ASP.NET, JScript.NET is one of the languages that is
supported I believe, although C# and VisualBasic a Microsoft's main
focus with .NET.

Other examples are given here : http://en.wikipedia.org/wiki/Server-side_JavaScript

Regards

Julian Turner

Jun 28 '07 #3
On Jun 28, 7:59 am, Ankur <khar...@gmail.comwrote:
I am new for this group. I want to clarify one thing what's a basic
difference between Client Side Java Script and Server Side Java
Script. how we can differentiate it. Why we called this kind of script
"Server Side Java Script".
One runs in the browser (the client), the other runs on the server
(the web server).
I am in confusion because according to lots of web developer Java
Script is a client side scripting language. We can not say it Server
Side Java Script.
Almost all JavaScript is client side. The majority of web developers
probably don't even realize that server side implementations exist.
The truth is that is is just a programming language and not specific
to server or client.

--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/

Jun 28 '07 #4
Thanks
On Jun 28, 1:17 pm, Julian Turner <julesb...@googlemail.comwrote:
On 28 Jun, 07:59, Ankur <khar...@gmail.comwrote:
Hi Folks,
I am new for this group. I want to clarify one thing what's a basic
difference between Client Side Java Script and Server Side Java
Script. how we can differentiate it. Why we called this kind of script
"Server Side Java Script".
I am in confusion because according to lots of web developer Java
Script is a client side scripting language. We can not say it Server
Side Java Script.
So let's have a discussion over this topic. Any clarification abt this
would be appreciable.
Thanks in advance

Fundamentally there are not two different specifications of
JavaScript, one for the client and one for the server: it is the same
JavaScript, just run in a different context.

Your starting point is the language specification, which is
formalised as "ECMAScript" -http://www.ecmascript-lang.org/. It is
currently at Edition 3, but Edition 4 (backwards compatible) is in the
pipeline.

Any application wishing to use ECMAScript must create its own
implementation of the language specification.

FireFox (Mozilla, Netscape) have their implementations (Rhino and
Spidermonkey) of Edition 3, and their current version is JavaScript
1.7 I believe.

Microsoft's implementation is called JScript, currently at version
5.6.

Edition 4 (which introduces namespaces, classes etc) is not yet
formally implemented, although ActionScript (Adobe Flash), and
JScript.NET (Microsoft .NET) implement substantial parts of it.

Any differences you encounter in different language implementations
will largely be down to how much of Edition 3 (or 4) has been
implemented, and whether the implementer has added anything else
outside the formal specification.

In terms of implementations in browsers, you can rely on all of the
latest browsers now having virtually complete implementations of
Edition 3.

In terms of "client side" or "server side", this is a question about
how ECMAScript is *used*, not what it is, or is not. The language
specification says nothing about the environment in which it is run.
From my understanding:-

(a) Client Side

When scripts are downloaded over the internet or an intranet by a web
browser as part of a web page, and run in that web browser, that usage
is termed "client side".

Those scripts cannot talk to the server from which they were
downloaded, except indirectly through some remote scripting means,
such as the XMLHttpRequest object.

Client side usage is by far the predominant usage of JavaScript.

(b) Server Side

Where you have a program running on a web server to dynamically
generate your web pages, talk to databases etc, then this is known as
"server side scripting" (http://en.wikipedia.org/wiki/Server-
side_scripting).

Whether ECMAScript is used as a scripting language on the server
depends what program you are using.

The main two I am aware of that use ECMAScript are classic ASP and
ASP .NET

If you are using classic ASP, then JScript 5.6 will be available (as
well as VBScript), although the Sun One ASP Server uses a buggy
JScript 5.1 implementation.

In relation to ASP.NET, JScript.NET is one of the languages that is
supported I believe, although C# and VisualBasic a Microsoft's main
focus with .NET.

Other examples are given here :http://en.wikipedia.org/wiki/Server-side_JavaScript

Regards

Julian Turner

Jun 28 '07 #5
In comp.lang.javascript message <11*********************@c77g2000hse.goo
glegroups.com>, Thu, 28 Jun 2007 09:06:55, David Dorward
<do*****@gmail.composted:
>On Jun 28, 7:59 am, Ankur <khar...@gmail.comwrote:
>I am new for this group. I want to clarify one thing what's a basic
difference between Client Side Java Script and Server Side Java
Script. how we can differentiate it. Why we called this kind of script
"Server Side Java Script".

One runs in the browser (the client), the other runs on the server
(the web server).
>I am in confusion because according to lots of web developer Java
Script is a client side scripting language. We can not say it Server
Side Java Script.

Almost all JavaScript is client side. The majority of web developers
probably don't even realize that server side implementations exist.
The truth is that is is just a programming language and not specific
to server or client.

--
DSS.

Javascript is not exclusively used client- or server- side; there is
more to computing than the Web.

Javascript can also be used within Web-type pages run locally in a
browser (web pages can be tested that way in development, though that is
not the only local use).

Javascript can also be executed in Windows Scripting Host - there,
VBScript is more common, which shows the benighted ignorance of the
average * programmer.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Delphi 3? Turnpike 6.05
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.bancoems.com/CompLangPascalDelphiMisc-MiniFAQ.htmclpdmFAQ;
<URL:http://www.borland.com/newsgroups/guide.htmlnews:borland.* Guidelines
Jun 29 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mike Moore | last post by:
Can an asp.net button that is a server side control call a client side java function when the button is clicked? If so, please provide example.....thanks.,
5
by: tmb | last post by:
Is there a way to use ASP to 'push' a new image to the client every 15 seconds or so? I guess the entire page will have to be 're-sent' to the client but I'm not sure. I'm trying to 'rotate'...
1
by: Stephen | last post by:
Hey Everyone, I have a problem with a web application due to the use of both client-side and server side script on the on-click event of a button. The client side script runs first as expected...
1
by: Stephen | last post by:
Hey All, I have a problem with a web application due to the use of both client-side and server side script on the on-click event of a button. The client side script runs first as expected however...
5
by: Mong | last post by:
Hi, I have a webform with various asp controls on it such as textboxes and dropdownlists. I'm fairly new to asp.net coming from VB6 and am wondering when it's best to use client side events and...
2
by: MPA | last post by:
Hi, I am a newbee. All our applications so far were traditional client-server database applications. We are considering now writing our main application with Visual Studio .NET. Basically we...
3
by: jesper_lofgren | last post by:
Hello, I have a problem, i have a event in asp.net codebehind file that updating a datasource. If that update went well i want to refresh my treeview thats on another page. The script works...
1
by: Simon_21 | last post by:
Hi All, I have a servlet which is invoked from a jsp page. While the serlvet is executing, the jsp page is waiting for the servlet to complete. When the servlet completes, it informs the waiting...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.