Re: Syntax question

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Dave Anderson" <NPQRWPDWZGSP@xxxxxxxxxxxxx> wrote in message
news:uPnsRNu0HHA.4184@xxxxxxxxxxxxxxxxxxxxxxx
"Mike" wrote:
Well, you only asked about syntax, after all. Your deliberate mistake
is valid JScript.

It wouldn't work in firefox until I changed to lower case p's. However,
I had set the script type as text/javascript. Is this a difference
between JScript and javascript?

No. DOM issues have nothing to do with the language. Compare where you
find the language references and the Event Object documentation:

JScript:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/29f83a2c-48c5-49e2-9ae0-7371d2cda2ff.asp

JavaScript:
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference

Event Objects:
http://msdn2.microsoft.com/en-us/library/ms535863.aspx
http://developer.mozilla.org/en/docs/DOM:event

As you can see, the language and the DOM are separate for each browser. As
you can clearly see from the two DOM sources, IE does not know what
event.pageX is any more than event.PageX, though the Gecko engine has no
problem with event.clientX. Take note of the [Specification] section at
the end of this document:
http://developer.mozilla.org/en/docs/DOM:event.pageX

Specification
Not part of any public standard.


I understand what you mean now by "legal" Jscript/javascript. And thank you
for the links.


.



Relevant Pages

  • Re: Object Rexx to become Open Source
    ... Granted WSH is not a language. ... >> up quickly, then the knock against JScript would be that, because it is ... never said that JScript was bad or even not as good a language as VBScript; ... But our official standard scripting language for such things as logon ...
    (microsoft.public.scripting.wsh)
  • Re: Object Rexx to become Open Source
    ... or least have proprietary extensions. ... I like 'continue' in JScript. ... Passing by paramater in WMI ... It's not really a fault of the language, ...
    (microsoft.public.scripting.wsh)
  • Re: How to capture WMP events with script (and not HTML)?
    ... But that's a syntax to create a connection point provided by ... JScript for one does not have it. ... > a language neutral stance with respect to ActiveScripting ...
    (microsoft.public.windowsmedia.sdk)
  • Re: Object Rexx to become Open Source
    ... >> standardization, imho. ... > I like 'continue' in JScript. ... convenient based on what is available in one's "first language". ... > can call the WMI method, whereas in VBScript you can pass a comma ...
    (microsoft.public.scripting.wsh)
  • Re: Why is MS trying to get rid of JScript?
    ... > can do in one line, then the language that can do the 1 liner ... Dave is able to lift ... While I am 100% committed to JScript for ASP, ...
    (microsoft.public.scripting.jscript)