Re: adding event with parameters dynamically?



Randy Webb wrote:
Thomas 'PointedEars' Lahn said the following on 9/14/2007 11:01 AM:
In the MSHTML DOM, no argument is passed; the reference to the Event object
has to be obtained through window.event:

Does that imply that there is another type of MS DOM? Maybe an MSXML DOM
or something similar?

AIUI, "MSHTML" is the common name for the combination of the Trident/Tasman
layout engine with the Microsoft Script Engine, the user agent of Microsoft
Internet Explorer (IE), HTAs like the Windows NT 5.x Control Panel,
Microsoft HTML Help, and other IE-based applications (primarily other Web
browsers such as NeoPlanet etc.)

The MSHTML DOM is the DOM supported by this UA for HTML documents and XHTML
documents served as text/html; it is covered by the subsection "HTML and
DHTML Reference" of the MSDN Library:

http://msdn2.microsoft.com/en-us/library/ms533050.aspx

Note that Microsoft still calls this "Dynamic HTML (DHTML) Object Model
Reference"; that is probably due to historic reasons: the term "DOM" for
what was then understood as "DHTML" was coined later.

There is also an MSXML DOM that is used primarily for processing XML
content. It provides for example the recognized IXMLHTTPRequest
interface, and is covered by another subsection of the MSDN Library:

http://msdn2.microsoft.com/en-us/library/ms759148.aspx

If there isn't, then it is simply an MSIE DOM.

Your logic is flawed.

That would still rely on the proprietary `onmouseover' property

Speaking of proprietary properties (which you like to point out and the
inherent error-prone nature of them), have you found an answer to my
"document" question whereby I wanted to know what you propose people use
instead of the "proprietary and error-prone" document object?

Sorry, I made it a rule for myself not to answer questions that are ripped
out of their context (in a childish attempt to invalidate a proposed
solution by ripping the corresponding quotation out of context.)


PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7@xxxxxxxxxxxxxxxx>
.



Relevant Pages

  • Re: JS, DOM and tr... IE problems!
    ... I've got a problem with javascript and DOM. ... Capitalisation is often used in HTML markup, ... If you post what your browser is actually getting (e.g. using view ...
    (comp.lang.javascript)
  • Re: Why doesnt IE show full html source?
    ... if you use smart navigation, javascript changes the dom on the fly, so the ... in turn is generated by javascript - for which you can see the source). ... need to use a dom inspector to see the changes made by smart nav. ... | Why does IE not show the full html source when I try to view the source?? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Intrepreting Javascript within C#
    ... Right, and using MSHTML, you would load the page, and then your bot ... DOM to get whatever elements were changed to have the new URL. ... If this is in the context of an HTML page, then why not use an HTML ... document host like MSHTML to execute the javascript? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: can some1 help with my kink is java
    ... And the differences between those two types of DOM (by ... We have the HTML DOM, with its case insensitivity, historical ... While the XHTML DOM is case sensitive, ... scripting one DOM is likely to get in the way when scripting the other. ...
    (comp.lang.javascript)
  • Re: calling a function from a iframe
    ... The aspect of HTML validity that is significant is ... When presented with structurally invalid HTML browsers engage in 'error ... Structurally valid HTML mark-up has a tree-like structure, the DOM also ...
    (comp.lang.javascript)

Loading