Re: Syntax question
- From: "Mike" <blank@xxxxxxxxxxx>
- Date: Mon, 30 Jul 2007 21:04:34 +0100
"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.
.
- References:
- Syntax question
- From: Mike
- Re: Syntax question
- From: Anthony Jones
- Re: Syntax question
- From: Mike
- Re: Syntax question
- From: Dave Anderson
- Re: Syntax question
- From: Mike
- Re: Syntax question
- From: Dave Anderson
- Syntax question
- Prev by Date: Re: Syntax question
- Next by Date: Pass OUT parameter to function in JScript
- Previous by thread: Re: Syntax question
- Next by thread: Tooltip basics example available
- Index(es):
Relevant Pages
|