SitePoint Sponsor |
|
User Tag List
Results 1 to 20 of 20
Thread: Standalone JavaScript
-
Jun 15, 2001, 09:09 #1
- Join Date
- Dec 2000
- Posts
- 9
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Standalone JavaScript
Can JavaScript be used by itself without using HTML or any other scripting? In other words, can it be used like Java, C++, or Visual Basic to create a program?
-
Jun 15, 2001, 10:48 #2
- Join Date
- Sep 1999
- Location
- Singapore
- Posts
- 854
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Yes, in a manner. Check out the Microsoft Windows Script Host. You can do quite a lot with it, but no substitute for a "real" programming language.
-
Jun 15, 2001, 12:05 #3
- Join Date
- May 2000
- Posts
- 313
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I believe you must have HTML inorder to use JavaScript. I don't think the Microsoft windows script host is JavaScript.
-
Jun 15, 2001, 12:14 #4
- Join Date
- Sep 1999
- Location
- Singapore
- Posts
- 854
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
The WSH ships with VBScript and JScript engines.
Anyway I have a WSH white paper, if anybody is interested in it I could email it to you.
-
Jun 15, 2001, 15:06 #5
- Join Date
- Jun 2001
- Location
- Toronto, Canada
- Posts
- 9,123
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
JS can be used within html, called from flash or database apps, used within html or used server side with Netscape's web server.
-
Jun 15, 2001, 19:43 #6
- Join Date
- Sep 1999
- Location
- Singapore
- Posts
- 854
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hmm, if you want to get into server side scripting, you can also use JScript with ASP.
-
Jun 15, 2001, 19:48 #7
- Join Date
- Oct 2000
- Location
- Austin, TX
- Posts
- 1,438
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You can write Apache modules in js as well.
-
Jun 18, 2001, 11:17 #8
- Join Date
- Mar 2001
- Location
- Los Angeles
- Posts
- 100
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I may be wrong, but doesn't JScript support all the language element of JavaScript?
bsacks
http://www.middlepeak.com
-
Jun 18, 2001, 11:24 #9
- Join Date
- Jun 2001
- Location
- Toronto, Canada
- Posts
- 9,123
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
JScript is, essentially, server side javascript. It's MS's module which IS supported by IE but which is really only used server side (within asp) and contains all of javascript with a few "extras" for calling external objects and such.
This is my understanding, but I've never worked with it so maybe someone else can illuminate here
-
Jun 18, 2001, 11:24 #10
- Join Date
- Sep 1999
- Location
- Singapore
- Posts
- 854
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by bsacks
I may be wrong, but doesn't JScript support all the language element of JavaScript?
-
Jun 18, 2001, 11:27 #11
- Join Date
- Sep 1999
- Location
- Singapore
- Posts
- 854
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by studiococo
JScript is, essentially, server side javascript. It's MS's module which IS supported by IE but which is really only used server side (within asp) and contains all of javascript with a few "extras" for calling external objects and such.Last edited by duckie; Jun 18, 2001 at 11:29.
-
Jun 18, 2001, 11:38 #12
- Join Date
- Mar 2001
- Location
- Los Angeles
- Posts
- 100
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Yes, So the point is;
You can use JScript with WSH which means that if you know JavaScript you should be able to write stand alone scripts to run in a windows environment.
bsacks
http://www.middlepeak.com
-
Jun 18, 2001, 11:42 #13
- Join Date
- Jun 2001
- Location
- Toronto, Canada
- Posts
- 9,123
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
duckie, I understand that it was MS's version of js (ecma) however since then it has been relegated to server side as no browser but IE supports it and even then, check which script ms.com uses
-
Jun 19, 2001, 06:57 #14
- Join Date
- Dec 2000
- Posts
- 9
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Wow! I am suprised that this question has drawn so much discussion. Thanks for the quick responses.
After reading the Windows Script Host white paper that duckie mentions, I have concluded that JavaScript can be used on a standalone machine without HTML, but it is limited. It can be used for things like logon scripts, etc. that require no user interface. There is not provision in JavaScript to create a GUI environment like there is in Visual Basic and other languages. That is what HTML does. It creates the user interface and JavaScript provides any extra functionality needed. So there is a use for JavaScript without HTML, but it is not fully functional like most languages.
If there is an error in my conclusion, please respond and let me know. I would also suggest you read the WSH white paper. It is interesting.
-
Jun 19, 2001, 07:14 #15
- Join Date
- Sep 1999
- Location
- Singapore
- Posts
- 854
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally posted by studiococo
duckie, I understand that it was MS's version of js (ecma) however since then it has been relegated to server side as no browser but IE supports it and even then, check which script ms.com uses
-
Jun 19, 2001, 07:58 #16
- Join Date
- Jun 2001
- Location
- Toronto, Canada
- Posts
- 9,123
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Yeah, that's what I said, isn't it? Or did I mistype?
-
Jun 19, 2001, 08:12 #17
- Join Date
- Sep 1999
- Location
- Singapore
- Posts
- 854
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hmm, I got the impression you are trying to say that "JScript" is what is used on the server side. Maybe I didn't read carefully enough.
-
Jun 19, 2001, 08:18 #18
- Join Date
- Jun 2001
- Location
- Toronto, Canada
- Posts
- 9,123
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
JScript is used client side on IE, server side in asp and netscape's server and inside wsh (which I haven't tried).
The above is what I meant... am I wrong?
-
Jun 19, 2001, 08:24 #19
- Join Date
- Sep 1999
- Location
- Singapore
- Posts
- 854
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Like I said I think maybe its a simple case of me misunderstanding what you were trying to say.
When you typed "it has been relegated to server side" I though you were trying to imply that JScript is used on the server side and the Javascript implementation in IE is known as something else, which of course, isn't what you actually meant.Last edited by duckie; Jun 19, 2001 at 09:37.
-
Jun 19, 2001, 09:27 #20
- Join Date
- Jun 2001
- Location
- Toronto, Canada
- Posts
- 9,123
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
kk
Bookmarks