Closed Thread Icon

Topic awaiting preservation: JavaScript != JScript ? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8761" title="Pages that link to Topic awaiting preservation: JavaScript != JScript ? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: JavaScript != JScript ? <span class="small">(Page 1 of 1)</span>\

 
ozphactor
Maniac (V) Inmate

From: California
Insane since: Jul 2003

posted posted 07-18-2003 05:51

I just recently found out that Javascript and Jscript are not the same thing...?

Apparently, JScript is "Micro$oft's version" of Javascript.
Funny, because I had been using the terms interchangably until now.

What I'd like to know is: are there any specific differences in the actual language? And which one am I supposed to use?

(I googled this and only found a few pages stating that JScript is different, providing no details.)

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 07-18-2003 06:12

Yeah, Jscript is MS's version of JavaScript, but they're really very similar. Jscript has extra, IE-only features. It's best to say "JavaScript," in my opinion, since that's the original, but it doesn't really matter.

ozphactor
Maniac (V) Inmate

From: California
Insane since: Jul 2003

posted posted 07-18-2003 07:25

IE-only features such as...?

_____________
stupid sig

[This message has been edited by ozphactor (edited 07-18-2003).]

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 07-18-2003 16:55

Such as document.all, for instance.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 07-18-2003 17:18

and like the functions allowing the manipulation of files offline. Sorry I don't have the JScript documentation but I've seen some kind of File Explorer done in JScript with those functions.

Mathieu "POÏ" HENRI

ozphactor
Maniac (V) Inmate

From: California
Insane since: Jul 2003

posted posted 07-18-2003 18:49

Ahhhhh...

Yes, those sites that try to sell you security software by claiming they can see inside your hard drive. Hehehe.


Thanks guys, for clearing that up.


[ - ozphactor - ]

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 07-18-2003 21:00

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

ozphactor
Maniac (V) Inmate

From: California
Insane since: Jul 2003

posted posted 07-18-2003 21:07

Doh!


You're right. I got confused. Well either way, I think I get it now...


[ - ozphactor - ]

ozphactor
Maniac (V) Inmate

From: California
Insane since: Jul 2003

posted posted 07-18-2003 21:11

On another note...


I'm writing up a browser detection script and I'm wondering if there are any "official" browser names that have to be used in the navigator appname thingy. I mean what's the difference between say, "Internet Explorer" and "Microsoft Internet Explorer"? Will either one work? How about appnames for lesser known browsers?

Or is this all blatantly obvious?

Sorry. I'm clueless when it comes to JavaScript.

[ - ozphactor - ]

[This message has been edited by ozphactor (edited 07-18-2003).]

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 07-18-2003 21:31

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

synax
Maniac (V) Inmate

From: Cell 666
Insane since: Mar 2002

posted posted 07-18-2003 22:30

Perhaps this is of some interest then...
<BLOCKQUOTE><FONT face="Verdana, Arial">code:</font><HR><pre>
<script language="JavaScript" type="text/javascript">
<!--
// Ultimate client-side JavaScript client sniff. Version 3.03
// (C) Netscape Communications 1999-2001. Permission granted to reuse and distribute.
// Revised 17 May 99 to add is_nav5up and is_ie5up (see below).
// Revised 20 Dec 00 to add is_gecko and change is_nav5up to is_nav6up
// also added support for IE5.5 Opera4&5 HotJava3 AOLTV
// Revised 22 Feb 01 to correct Javascript Detection for IE 5.x, Opera 4,
// correct Opera 5 detection
// add support for winME and win2k
// synch with browser-type-oo.js
// Revised 26 Mar 01 to correct Opera detection
// Revised 02 Oct 01 to add IE6 detection

// Everything you always wanted to know about your JavaScript client
// but were afraid to ask. Creates "is_" variables indicating:
// (1) browser vendor:
// is_nav, is_ie, is_opera, is_hotjava, is_webtv, is_TVNavigator, is_AOLTV
// (2) browser version number:
// is_major (integer indicating major version number: 2, 3, 4 ...)
// is_minor (float indicating full version number: 2.02, 3.01, 4.04 ...)
// (3) browser vendor AND major version number
// is_nav2, is_nav3, is_nav4, is_nav4up, is_nav6, is_nav6up, is_gecko, is_ie3,
// is_ie4, is_ie4up, is_ie5, is_ie5up, is_ie5_5, is_ie5_5up, is_ie6, is_ie6up, is_hotjava3, is_hotjava3up,
// is_opera2, is_opera3, is_opera4, is_opera5, is_opera5up
// (4) JavaScript version number:
// is_js (float indicating full JavaScript version number: 1, 1.1, 1.2 ...)
// (5) OS platform and version:
// is_win, is_win16, is_win32, is_win31, is_win95, is_winnt, is_win98, is_winme, is_win2k
// is_os2
// is_mac, is_mac68k, is_macppc
// is_unix
// is_sun, is_sun4, is_sun5, is_suni86
// is_irix, is_irix5, is_irix6
// is_hpux, is_hpux9, is_hpux10
// is_aix, is_aix1, is_aix2, is_aix3, is_aix4
// is_linux, is_sco, is_unixware, is_mpras, is_reliant
// is_dec, is_sinix, is_freebsd, is_bsd
// is_vms
//
// See http://www.it97.de/JavaScript/JS_tutorial/bstat/navobj.html and
// http://www.it97.de/JavaScript/JS_tutorial/bstat/Browseraol.html
// for detailed lists of userAgent strings.
//
// Note: you don't want your Nav4 or IE4 code to "turn off" or
// stop working when new versions of browsers are released, so
// in conditional code forks, use is_ie5up ("IE 5.0 or greater")
// is_opera5up ("Opera 5.0 or greater") instead of is_ie5 or is_opera5
// to check version in code which you want to work on future
// versions.

// convert all characters to lowercase to simplify testing
var agt=navigator.userAgent.toLowerCase();

// *** BROWSER VERSION ***
// Note: On IE5, these return 4, so use is_ie5up to detect IE5.
var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);

// Note: Opera and WebTV spoof Navigator. We do strict client detection.
// If you want to allow spoofing, take out the tests for opera and webtv.
var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
&& (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
&& (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
var is_nav2 = (is_nav && (is_major == 2));
var is_nav3 = (is_nav && (is_major == 3));
var is_nav4 = (is_nav && (is_major == 4));
var is_nav4up = (is_nav && (is_major >= 4));
var is_navonly = (is_nav && ((agt.indexOf(";nav") != -1)

Rinswind 2th
Maniac (V) Inmate

From: Den Haag: The Royal Residence
Insane since: Jul 2000

posted posted 07-18-2003 22:37

Cool script.
But ehr .... i really have no use for the information overload it generates.....

__________________________________________
"Art has to be forgotten. Beauty must be realized."
Piet Mondriaan

ozphactor
Maniac (V) Inmate

From: California
Insane since: Jul 2003

posted posted 07-18-2003 23:03

Wow.

What I hand in mind was a bit simpler, but thanks anyways.


[ - ozphactor - ]

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 07-19-2003 00:53

I wrote a browser sniffer, too!

if (document.all)

synax
Maniac (V) Inmate

From: Cell 666
Insane since: Mar 2002

posted posted 07-19-2003 15:37

*stabs Slime*

I obviously didn't write the above. I just thought it could be rather useful.

Hiroki
Paranoid (IV) Inmate

From: NZ
Insane since: Dec 2002

posted posted 07-21-2003 23:22

Slime:

quote:
Such as document.all, for instance.



Is that available only for IE????
Hmmm......
Here is a story.
You know I am studying web stuff at polytechnic. I took a class of JavaScript and ActionScript. I made a script which was sort of css switcher. My tutor wrote document.all on the board. I cannot remember all the script but I am sure about that. Cuz I was wondering what the hell all was.
Thanks for telling me that, Slime. Otherwise I didnot know about this.
Cya.

Hiroki Kozai

« BackwardsOnwards »

Show Forum Drop Down Menu