473,396 Members | 1,766 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,396 software developers and data experts.

Server-side JavaScript

I have been reading a book on JavaScript that is mostly for the
client-side, however, I'd like to learn the language from the
server-side, is there a book anyone could recomend?
TIA

Mar 30 '06 #1
17 2769
Jamiil wrote:
I have been reading a book on JavaScript that is mostly for the
client-side, however, I'd like to learn the language from the
server-side, is there a book anyone could recomend?


Not a book.

<http://en.wikipedia.org/wiki/JavaScript#Reference_Material>

But probably you are talking about server-side _JScript_ as used in MS
ASP(.NET). In that case you would be confusing language and execution
environment.

<URL:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/jscript7/html/jslrfjscriptlanguagereference.asp>
<URL:http://msdn.microsoft.com/asp.net/>
PointedEars
Mar 30 '06 #2
Jamiil wrote:
I have been reading a book on JavaScript that is mostly for the
client-side, however, I'd like to learn the language from the
server-side, is there a book anyone could recomend?
TIA

Google?

Your choices will be somewhat limited and there are better choices for
server side processing.

--
Ian Collins.
Mar 30 '06 #3

Jamiil wrote:
I have been reading a book on JavaScript that is mostly for the
client-side, however, I'd like to learn the language from the
server-side, is there a book anyone could recomend?
TIA From my own knowledge, JScript (MS implementation of ECMA script) for

ASP server side is identical to JScript in the browser (although the
Sun One implementation of JScript in its Chilisoft ASP software has
some bugs).

The additional things you need to learn about are not JScript as such,
but the host objects (Application, Session, etc) provided by the ASP
environment, and general ASP scripting techniques (common to whatever
language you use for ASP). Look for books relating to ASP, or ask in
an ASP newsgroup.

Regards

Julian Turner

Mar 31 '06 #4
Julian Turner wrote:
Jamiil wrote:
I have been reading a book on JavaScript that is mostly for the
client-side, however, I'd like to learn the language from the
server-side, is there a book anyone could recomend?
TIA


From my own knowledge, JScript (MS implementation of ECMA script) for
ASP server side is identical to JScript in the browser [...]


I would consider this to be wrong, because server-side JScript.NET is there,
as an implementation of the _ECMAScript_ Edition 4 proposal, while AFAIK it
has not spread yet to a client-side application, where still only JScript
5.6 is used, an implementation of ECMAScript Edition 3 (CMIIW). Therefore,
it would be correct to say that server-side JScript supports classes and
strict typing, while client-side JScript does not; this would be quite a
difference between the two.
PointedEars
Mar 31 '06 #5
Thomas 'PointedEars' Lahn wrote:
Julian Turner wrote:
Jamiil wrote:
I have been reading a book on JavaScript that is mostly for the
client-side, however, I'd like to learn the language from the
server-side, is there a book anyone could recomend?
TIA

From my own knowledge, JScript (MS implementation of ECMA script) for
ASP server side is identical to JScript in the browser [...]


I would consider this to be wrong, because server-side JScript.NET is there,
as an implementation of the _ECMAScript_ Edition 4 proposal, while AFAIK it
has not spread yet to a client-side application, where still only JScript
5.6 is used, an implementation of ECMAScript Edition 3 (CMIIW). Therefore,
it would be correct to say that server-side JScript supports classes and
strict typing, while client-side JScript does not; this would be quite a
difference between the two.
PointedEars


Thomas, there is nothing wrong with Julian answer. ASP is not ASP.NET.

ASP.NET uses JScript.NET and ASP uses whichever version of ActiveScript
engine is configured as JScript, most likely JScript v5.6 these days.
Same language engine will be used on that machine for IE, ASP, WSH and
any application hosting JScript.

Jamil, instead of book I recomend MSDN

http://msdn.microsoft.com/library/de...eservpages.asp
Apr 1 '06 #6
Roman Ziak wrote:
Thomas 'PointedEars' Lahn wrote:
Julian Turner wrote:
Jamiil wrote:
I have been reading a book on JavaScript that is mostly for the
client-side, however, I'd like to learn the language from the
server-side, is there a book anyone could recomend?
TIA
From my own knowledge, JScript (MS implementation of ECMA script) for
ASP server side is identical to JScript in the browser [...]
I would consider this to be wrong, because server-side JScript.NET is
there, as an implementation of the _ECMAScript_ Edition 4 proposal, while
AFAIK it has not spread yet to a client-side application, where still
only JScript 5.6 is used, an implementation of ECMAScript Edition 3
(CMIIW). Therefore, it would be correct to say that server-side JScript
supports classes and strict typing, while client-side JScript does not;
this would be quite a difference between the two.
[...]


Thomas, there is nothing wrong with Julian answer. ASP is not ASP.NET.


Of course they are not.
ASP.NET uses JScript.NET and ASP uses whichever version of ActiveScript
engine is configured as JScript, most likely JScript v5.6 these days.
Most likely not. Since you are talking about _Microsoft_ ASP, read this:

,-<URL:http://msdn.microsoft.com/library/en-us/iissdk/html/cccf225f-d2ab-472e-a388-e08dcdba479f.asp>
|
| Changes in ASP Features in IIS 6.0
|
| Changes in ASP Features
|
| * ASP Pages are Disabled by Default
|
| In order to take a more proactive stance against malicious users and
| attackers, IIS is not installed on members of the Microsoft® Windows®
| Server 2003 family by default. Furthermore, when you initially install
| IIS, the service is installed in a highly secure and "locked" mode. By
| default, IIS serves only static content — meaning features like ASP,
| ASP.NET, Server-Side Includes, WebDAV publishing, and FrontPage® Server
| Extensions do not work unless enabled.

I understand this as if you can enable ASP and then you enable ASP.NET as
well.
Same language engine will be used on that machine for IE, ASP, WSH and
any application hosting JScript.


Not quite.
PointedEars
Apr 1 '06 #7
Thomas 'PointedEars' Lahn wrote:
Roman Ziak wrote:

<snip>
ASP.NET uses JScript.NET and ASP uses whichever version of ActiveScript
engine is configured as JScript, most likely JScript v5.6 these days.
Most likely not. Since you are talking about _Microsoft_ ASP, read this:

,-<URL:http://msdn.microsoft.com/library/en-us/iissdk/html/cccf225f-d2ab-472e-a388-e08dcdba479f.asp>
|
| Changes in ASP Features in IIS 6.0
|
| Changes in ASP Features
|
| * ASP Pages are Disabled by Default
|
| In order to take a more proactive stance against malicious users and
| attackers, IIS is not installed on members of the Microsoft® Windows®
| Server 2003 family by default. Furthermore, when you initially install
| IIS, the service is installed in a highly secure and "locked" mode. By
| default, IIS serves only static content — meaning features like ASP,
| ASP.NET, Server-Side Includes, WebDAV publishing, and FrontPage® Server
| Extensions do not work unless enabled.


Relevance ?

I understand this as if you can enable ASP and then you enable ASP.NET as
well.
Same language engine will be used on that machine for IE, ASP, WSH and
any application hosting JScript.


Not quite.

I do not wish to continue this argument, but for other readers
interested in this matter here is a 5-10 minutes experiment on switching
Windows JavaScript engine to other than JScript for all three hosts: IE,
ASP and WSH.
1. download DMDscript: http://www.digitalmars.com/dscript/cppscript.html
2. unpack it and when in the same directory, type on command line

regsvr32 dscript.dll
treatas jscript dmdscript
3. navigate *IE* here: http://www.digitalmars.com/dscript/sieve.html

*result:* ScriptEngine DMDScript Build Wed Jun 19 00:17:15 2002
4. create the following file and double click (*WSH*):

--- wsh.js

WScript.Echo("ScriptEngine " + ScriptEngine() + " Build " +
ScriptEngineBuildVersion());

---

*result:* ScriptEngine DMDScript Build Wed Jun 19 00:17:15 2002
5. create the folowing file

--- c:\Inetpub\wwwroot\info.asp

<%@ Language="JScript" %>
<% Response.Write("ScriptEngine " + ScriptEngine() + " Build " +
ScriptEngineBuildVersion()) %>

---
6. enable IIS and navigate any browser to ASP page http://localhost/info.asp

*result:* ScriptEngine DMDScript Build Wed Jun 19 00:17:15 2002
7. type on command line

regsvr32 /u dscript.dll
treatas jscript
8. now you may delete DMDscript (or keep it:) and you optionally may
restart IIS to flush the cache, otherwise info.asp will still be showing
DMDscript

net stop w3svc
net start w3svc
For simplicity, experiment made assumptions for default Windows
installation (IIS root directory, WSH opening *.js files, etc). Of
course, the ASP part will not work on Windows w/o IIS like Win98 or XP Home.

Roman
Apr 1 '06 #8

Thomas 'PointedEars' Lahn wrote:
I would consider this to be wrong, because server-side JScript.NET is there,
as an implementation of the _ECMAScript_ Edition 4 proposal
I understand the point you are making, and have appreciated the
discussion between Roman Ziak and yourself.

I had overlooked JScript.NET as an option, as I had only been using
Chilisoft ASP "classic" (as acquired by Sun).
, while AFAIK it
has not spread yet to a client-side application, where still only JScript
5.6 is used, an implementation of ECMAScript Edition 3 (CMIIW).
I guess the move to Edition 4 client side will only start to happen
once Edition 4 has been finalised. As everyone will have seen from
Brendan's roadmap <URL:http://weblogs.mozillazine.org/roadmap/> there
may, if I understand it correctly, be some differences between the
Edition 4 proposal and the final Edition 4, such as the way that
variable "typing" is handled.
Therefore,
it would be correct to say that server-side JScript supports classes and
strict typing, while client-side JScript does not; this would be quite a
difference between the two.


The assumption being that you are using JScript.NET?

Regards

Julian Turner

Apr 3 '06 #9
PHP is quiet alike JavaScript.
After coding some JavaScript, it's not that hard to go back to PHP :)

http://phpjs.berlios.de/

Very interesitn gthat i found.
You can easily make it run your JavaScript code under PHP - Just awsome
;)

Regards

Apr 3 '06 #10
Julian Turner wrote:
Thomas 'PointedEars' Lahn wrote:
I would consider this to be wrong, because server-side JScript.NET is
there, as an implementation of the _ECMAScript_ Edition 4 proposal
I understand the point you are making, and have appreciated the
discussion between Roman Ziak and yourself.

I had overlooked JScript.NET as an option, as I had only been using
Chilisoft ASP "classic" (as acquired by Sun).


ACK
, while AFAIK it
has not spread yet to a client-side application, where still only JScript
5.6 is used, an implementation of ECMAScript Edition 3 (CMIIW).


I guess the move to Edition 4 client side will only start to happen
once Edition 4 has been finalised.


Perhaps. I am not sure yet whether there can be JScript.NET client-side
right now, since there is a .NET support supplement you can install to
Windows 2k already.
As everyone will have seen from Brendan's roadmap
<URL:http://weblogs.mozillazine.org/roadmap/> there
may, if I understand it correctly, be some differences between the
Edition 4 proposal and the final Edition 4, such as the way that
variable "typing" is handled.


Such as? (Brendan is writing about JS2, not ECMAScript Edition 4, although
he says that his ideas are "shared in large part by ECMA TG1 for ECMA-262
Edition 4".)
Therefore, it would be correct to say that server-side JScript supports
classes and strict typing, while client-side JScript does not; this would
be quite a difference between the two.


The assumption being that you are using JScript.NET?


Yes. AIUI, ASP.NET replaces ASP in current IIS versions.
PointedEars
Apr 3 '06 #11
Drakazz wrote:
PHP is quiet alike JavaScript.


Are you referring to something?
PointedEars
Apr 3 '06 #12
Thomas 'PointedEars' Lahn wrote on 03 apr 2006 in comp.lang.javascript:
Drakazz wrote:
PHP is quiet alike JavaScript.


Are you referring to something?


Sssssssssssssst !

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Apr 3 '06 #13
Syntax?:)

in php:
$object->command();

in JS:
object.command();

in php:
for ( $i = 0; $i < 10; $i++) {
echo $i;
}

JS:
for(i=0;i<10;i++){
alert(i);
}

both the same:
function something() {
//Returns true
return true;
}

arrays are bit different.

Well, reallyit'sjust the syntax. You have totalyl different ways of
doing things. for example in JS you'd do string.toLowerCase(); etc.

I just wonder...
If PHP was rebuilt to support ECMAScript :)

Apr 6 '06 #14
Drakazz wrote on 06 apr 2006 in comp.lang.javascript:
Syntax?:)


Are you replying on something?

Please quote what you are replying to.

If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at the
top of the article, then click on the "Reply" at the bottom of the article
headers.

<http://www.safalra.com/special/googlegroupsreply/>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Apr 6 '06 #15

Thomas 'PointedEars' Lahn wrote:

[snip]
Perhaps. I am not sure yet whether there can be JScript.NET client-side
right now, since there is a .NET support supplement you can install to
Windows 2k already.
[/snip]

Interesting. Do you have a link for this?

[snip]
Edition 4 proposal and the final Edition 4, such as the way that
variable "typing" is handled.

Such as? (Brendan is writing about JS2, not ECMAScript Edition 4, although
he says that his ideas are "shared in large part by ECMA TG1 for ECMA-262
Edition 4".)
I think I am misunderstanding something about the relationship between
the development of JS2 and ECMA Edition 4.

The 'typing' point was the use of the colon " : " to declare a type.
Brendan's notes on JS2, are strongly in the direction of using "as",
"is" and "to".

[snip] Yes. AIUI, ASP.NET replaces ASP in current IIS versions.


Thanks.

Regards

Julian

Apr 6 '06 #16
Julian Turner wrote:
Thomas 'PointedEars' Lahn wrote:
Perhaps. I am not sure yet whether there can be JScript.NET client-side
right now, since there is a .NET support supplement you can install to
Windows 2k already.
Interesting. Do you have a link for this?


I saw it when using <URL:http://windowsupdate.microsoft.com/>.
Probably there is a regular download available at microsoft.com.
> Edition 4 proposal and the final Edition 4, such as the way that
> variable "typing" is handled.

Such as? (Brendan is writing about JS2, not ECMAScript Edition 4,
although he says that his ideas are "shared in large part by ECMA TG1
for ECMA-262 Edition 4".)


I think I am misunderstanding something about the relationship between
the development of JS2 and ECMA Edition 4.


s/ECMA/ECMAScript (ECMA-262)/
The 'typing' point was the use of the colon " : " to declare a type.
And I can see no differences between the new JS2 proposal and the
currently published ES4 proposal here.

<URL:http://www.mozilla.org/js/language/es4/>
Brendan's notes on JS2, are strongly in the direction of using "as",
"is" and "to".


The differences between the two proposals are here, where Brendan
suggests a different type hierarchy, where those type operators
would come in handy. They are mentioned in the currently published
proposal already, but AFAIS they are not well-defined there.
PointedEars
Apr 6 '06 #17

Thomas 'PointedEars' Lahn wrote:

[snip]
I saw it when using <URL:http://windowsupdate.microsoft.com/>.
Probably there is a regular download available at microsoft.com.
Thank you, I will take a look.

[snip] And I can see no differences between the new JS2 proposal and the
currently published ES4 proposal here.

<URL:http://www.mozilla.org/js/language/es4/>


Thank you, that link, and the link in it to JS2.0 makes it clear to me
now.

[snip]
Brendan's notes on JS2, are strongly in the direction of using "as",
"is" and "to".


The differences between the two proposals are here, where Brendan
suggests a different type hierarchy, where those type operators
would come in handy. They are mentioned in the currently published
proposal already, but AFAIS they are not well-defined there.


Thanks Thomas. I appreciate the comments.

Regards

Julian

Apr 6 '06 #18

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

Similar topics

2
by: Phil | last post by:
I am using a Pascal like language (Wealth-Lab) on W2K and call this server: class HelloWorld: _reg_clsid_ = "{4E797C6A-5969-402F-8101-9C95453CF8F6}" _reg_desc_ = "Python Test COM Server"...
6
by: Nathan Sokalski | last post by:
I want to set up SQL Server on Windows XP Pro so that I can use the database capabilities of ASP and IIS. I am probably using some incorrect settings, but I am not sure what they are. Here is what...
9
by: Grim Reaper | last post by:
My work let me put SQL Server 7.0 Enterprise Edition on my laptop. I have never setup a server from the beginning, so I am a little new at creating server groups. Alright, I am trying to create...
0
by: Chris Halcrow | last post by:
Hi I've spent ALL DAY trying to re-install SQL Server 2000 on Windows XP. I continually get the error 'cannot configure server' just at the end of the installation. I've tried the following: ...
0
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
22
by: EP | last post by:
When running my asp.net hosting service (asp.net without IIS), on server 2003 with IIS not installed, I get the following when trying to process a request. "System.DllNotFoundException: Unable to...
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
4
by: coosa | last post by:
Hi, I was installing SQL Server on my machine and during installation my PC freezed. It happens frequently on my machine. So i tried after restarting to install it again and since then i always...
1
by: Peter | last post by:
I've purchased VS.NET 2005 Standard and have tried to install SQL Server 2005 Express, but get the following error in the error log. Please could someone help me.... Microsoft SQL Server 2005...
14
by: Developer | last post by:
Hello All, i have recently installed VS2005 and was trying to install SQL sever 2000. I have Win XP' SP2. But when I tried installing, it only installed client tools and not the database. Can...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.