Forum Moderators: open

Message Too Old, No Replies

Server side Javascript

Compared to ASP, how does it behave? Can the programmer&user trust it?

         

dnimrodx

8:19 am on Feb 5, 2004 (gmt 0)

10+ Year Member



Hi there,

I have a simple question which popped up in my mind after reading a (reply-)post by mep00 on which he said:

The best way to go is to use both client and server side scripting. Even if it seems that client side is a more logical approach, never rely on client side verification of any data; it's very easy to bypass, if it works at all (which it may not).
As a rule of thumb: client site scripting is for the client's benifit, server side is for yours.

Like I said in my reply, I quite like the way he put this :) . I would like to know, though, if: Server-sided Javascript can be fully implemented; apart from the language type and structure, what are the main differences between ASP & server-sided javascript; can I (as a developer) and the user fully trust this form of implementing?

Lots of Thanks in anticipation,

d#Nimrod

mep00

11:52 am on Feb 5, 2004 (gmt 0)

10+ Year Member



Like I said in my reply, I quite like the way he put this
Thank you very much.

ASP isn't a language; it's an API for IIS. ASP supports both VBScript and JavaScript. The main difference between client and server side js is the object model with which it interfaces. That, and the degre of control of the enviroment--limited, if any, client side, versus almost absolute server side.

Personally though, I prefer php for scripting server side, but that's a seperate issue.

dnimrodx

2:03 pm on Feb 5, 2004 (gmt 0)

10+ Year Member



The main difference between client and server side js is the object model with which it interfaces.

So you would say it is as safe to use server-sided javascript as it is to use ASP?

thanks mep00

txbakers

3:21 pm on Feb 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You're still not understanding it.

ASP is not a language, it's a technology.

To implement the ASP technology you choose a language: VBscript or JavaScript.

dnimrodx

12:20 pm on Feb 6, 2004 (gmt 0)

10+ Year Member



You're still not understanding it.
ASP is not a language, it's a technology.

To implement the ASP technology you choose a language: VBscript or JavaScript.

Right! I understand your point now. I thought you could actually use server-side javascript and achieve the same results as you would using ASP, but I didn't know that when you refer to server-side javascript you are actually referring to ASP, as you need that technology to run server-side scripts.

My ignorance! I thought ASP was a programming language and that is why I was missing the point.

Sorry for that and thank you for clarifying it to me. :)

d#Nimrod