Talk:JScript: Difference between revisions

Content deleted Content added
Cewbot (talk | contribs)
m Maintain {{WPBS}}: 4 WikiProject templates. Keep majority rating "Start" in {{WPBS}}. Keep 1 different rating in {{WikiProject Microsoft}}.
 
(43 intermediate revisions by 27 users not shown)
Line 1:
{{WikiProject banner shell|class=C|1=
{{WikiProject JavaScript|importance=Mid}}
{{WikiProject Computing|importance=Low|software=yes|software-importance=}}
{{WikiProject Microsoft Windows|importance=Mid}}
{{WikiProject Microsoft|net=yes|net-importance=low|class=start}}
}}
{{Broken anchors|links=
* <nowiki>[[Windows 8#Consumer Preview|Windows 8 Consumer Preview]]</nowiki> The anchor (#Consumer Preview) is no longer available because it was [[Special:Diff/561950994|deleted by a user]] before. <!-- {"title":"Consumer Preview","appear":{"revid":478885112,"parentid":478880042,"timestamp":"2012-02-26T03:19:33Z","replaced_anchors":{"Consumer Preview/Beta":"Consumer Preview"},"removed_section_titles":["Consumer Preview/Beta"],"added_section_titles":["Consumer Preview"]},"disappear":{"revid":561950994,"parentid":561950597,"timestamp":"2013-06-28T11:20:01Z","removed_section_titles":["Leaked Builds and Developer Preview","Consumer Preview","Release Preview","RTM and release"],"added_section_titles":["Pre-release versions","Release to manufacturing"]}} -->
}}
 
==comment==
Regarding: "When web developers talk about using JavaScript in Internet Explorer, they silently mean JScript in Internet Explorer." I think this statement is
a) vauge
Line 7 ⟶ 18:
BJF
* Well, you are right in that IE does not translate JavaScript into JScript behind the scenes. Instead it will read it directly as JScript, which is (at least) mostly compatible with JavaScript. Because of that, yes you are right that developers do not write <SCRIPT language="jscript"> if they intend a page to render on IE only (which is an unheard of practice anyway). [[User:Yuhong|Yuhong]] 15:45, 10 January 2006 (UTC)
 
* IE loads the script engine registered to handle the language requested in the script tag. On a standard Windows installation (checking on WinXP SP2), JScript, ECMAScript, JavaScript, JavaScript1.1, JavaScript1.2, JavaScript1.3 and LiveScript all maps to the Microsoft JScript engine. However, it is perfectly possible to configure the system to use different engines for these languages. [[User:PhMajerus|PhMajerus]] 17:01, 13 April 2007 (UTC)
* Specifying "JScript" explicitely as the language both makes sure that the JScript engine is used even if other engines are configured to handle other related languages, and make browsers that do not support JScript language extensions ignore that script block. So specifying JScript, ECMAScript or javascript explicitely depending on the language features required to run the script can be used to hide a script from browsers that do not support that specific version of the language [[User:PhMajerus|PhMajerus]] 17:01, 13 April 2007 (UTC)
 
* Note JScript 5.7 (included in Windows Internet Explorer 7.0) includes a JScript.Compact engine. While JScript is a superset of the full ECMAScript (ECMA-262), JScript.Compact limits its features to those required by the ECMAScript Compact Profile (ES-CP, ECMA-327). A runtime error is thrown when a feature not required by the ES-CP specifications is used. (I could not find official information about JScript.Compact, I discovered this engine when experimenting with JScript 5.7) [[User:PhMajerus|PhMajerus]] 17:01, 13 April 2007 (UTC)
 
===== OK so why remove that sentence? =====
 
It seems that many pages use the terms JavaScript when they really mean "Jscript" and that sentence ("When web developers talk about using JavaScript in Internet Explorer, they silently mean JScript in Internet Explorer.") is very helpful. See, e.g., [http://gsaauctions.gov/brow_details/IE6instr.htm this page]. What I want to know is whether IE implements JavaScript or JScript. Is it possible to force IE to use JavaScript and not Jscript? It appears that if it is IE, then it is executing Jscript and not JavaScript. This is an important fact that should not be left out of the article. I suggest reinserting the sentence or something like it.--[[User:Lenehey|Lenehey]] 00:18, 17 July 2007 (UTC)
 
==Garbage Collection==
Line 14 ⟶ 34:
 
::I am not certain, although there definitely is a difference, causing any object with a circular reference to a native object in IE to leak memory (as if those were reference-counted, or rooted), while this does not occur with SpiderMonkey used in Mozilla based browsers --[[User:66.11.179.30|66.11.179.30]] 09:25, 20 September 2006 (UTC)
 
== Created vs plagiarized ==
''JScript is a computer programming language created by Microsoft and is a superset of the ECMAScript programming language.'' or better ''JScript is a computer programming language
plagiarized by Microsoft and is a superset of the ECMAScript programming language.''
 
: It also seemed weird to me, fixed. --[[User:Asqueella|asqueella]] 13:16, 12 August 2007 (UTC)
 
== Browsers ==
 
So Jscript only appears in internet explorer browsers as it is microsoft only? [[User:Transaction Go|Transaction Go]] ([[User talk:Transaction Go|talk]]) 06:52, 9 September 2009 (UTC)
 
== JScript is not Javascript ==
[http://javascript.about.com/library/bljscript.htm JScript is not Javascript] has a simple example of problematic differences between the two. The JScript article really should be more clear about the differences, but the current content is very vague. --<small><span class="autosigned">—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:63.175.18.130|63.175.18.130]] ([[User talk:63.175.18.130|talk]] • [[Special:Contributions/63.175.18.130|contribs]]) </span></small><!-- Template:Unsigned --> 23:06, 11 September 2009 (UTC)
:It is not a language difference, it is host environment difference. IE installs those variables in global, not JScript. You will also get them if you use Perl or VB on same host and you will not get them (obviously), if you run it it in wscript.exe/cscript.exe. Statement about this being a language difference is completely wrong and I will remove it in a few days unless anybody have any valid objection. --[[User:Rowaasr13|Rowaa&#91;SR13&#93;]] ([[User talk:Rowaasr13|talk]]) 06:57, 25 June 2010 (UTC)
:To clarify: what said above applies to entire sentence that refers to article at About.com - those "extra commands" mentioned are just a host object functions. So I will remove this sentence completely with both references. --[[User:Rowaasr13|Rowaa&#91;SR13&#93;]] ([[User talk:Rowaasr13|talk]]) 08:28, 25 June 2010 (UTC)
 
== Some additional suggestions ==
 
I think this article would benefit from an example, and possibly some historical information (although this is possibly covered to great extent by historical notes in [[JavaScript]] and [[ECMAScript]]. Also, I don't think that ECMAScript influenced JScript in the sense meant by "Influenced" in the Infobox. As of this date, I think the article is much improved since it was tagged as having multiple issues (e.g. the notes and references have been cleaned up and reviewed). [[User:DonToto|DonToto]] ([[User talk:DonToto|talk]]) 13:26, 8 June 2010 (UTC)
 
== IE9 should refer to JavaScript, not to JScript ==
 
Checking the [http://msdn.microsoft.com/en-us/library/hbxc2t98%28v=vs.84%29.aspx MSDN] for JScript, IE 8 will be the last browser to use JScript, and IE9 onward will use JavaScript. The main difference is that
 
* JScript uses the [[Windows Script Host]] platform and refers to EcmaScript 3 for its syntax
* JavaScript uses [[Chakra_(JScript_engine) | Chakra]] and refers to EcmaScript 5 for its syntax
 
I think this information should appear on the page. For an example in [[JScript#Versions | Versions]] section, we have to indicate that IE 9 will use JavaScript moving forward.
 
Let me know your thoughs on how to best present the information.
 
[[User:OnesimusUnbound|OnesimusUnbound]] ([[User talk:OnesimusUnbound|talk]]) 05:44, 15 October 2012 (UTC)
 
== Maintenance and rating of JavaScript articles ==
 
Concerning editing and maintaining JavaScript-related articles...
 
=== Collaboration...===
If you are interested in collaborating on JavaScript articles or would like to see where you could help, stop by [[Wikipedia:WikiProject JavaScript]] and feel free to add your name to the participants list. Both editors and programmers are welcome.
=== Where to list JavaScript articles ===
We've found over 300 [[Index of JavaScript-related articles|JavaScript-related articles]] so far. If you come across any others, please add them to that list.
 
=== User scripts ===
 
The WikiProject is also taking on the organization of the Wikipedia community's user script support pages. If you are interested in helping to organize information on the user scripts (or are curious about what we are up to), [[Wikipedia talk:WikiProject JavaScript|let us know]]!
 
If you have need for a user script that does not
yet exist, or you have a cool idea for a user script or gadget, you can post it at [[Wikipedia:User scripts/Requests]]. And if you are a JavaScript programmer, that's a great place to find tasks if you are bored.
 
=== How to report JavaScript articles in need of attention ===
If you come across a JavaScript article desperately in need of editor attention, and it's beyond your ability to handle, you can add it to our [[Wikipedia:WikiProject JavaScript#JavaScript-related articles that need attention|list of JavaScript-related articles that need attention]].
 
=== Rating JavaScript articles ===
 
At the top of the talk page of most every JavaScript-related article is a WikiProject JavaScript template where you can record the quality class and importance of the article. Doing so will help the community track the stage of completion and watch the highest priority articles more closely.
 
Thank you. [[User talk:The Transhumanist|<i>The&nbsp;Transhumanist</i>]] 01:10, 12 April 2017 (UTC)