Looking for Object browser

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • scottf35@hotmail.com

    Looking for Object browser

    Hello,

    Can someone please point me to THE source for complete javascript
    documentation?

    Particualry I am interested in the document object. For example with,
    document.getEle mentById(id), there is at least style and rows
    properties and with rows you can get lenght:

    eg document.getEle mentById(id).St yle
    document.getEle mentById(id).Ro ws.Length

    What I would really like is to be able to look at an object browser
    which shows every property and method associated with the javascript
    document object (and all of the other objects too but I don't want to
    be greety!).

    Hopefully this is out there some where. I keep hanging out here asking
    for fish when really I want a fishing rod of my own.

    Can any one help me out?

  • Michael Winter

    #2
    Re: Looking for Object browser

    scottf35@hotmai l.com wrote:
    [color=blue]
    > Can someone please point me to THE source for complete javascript
    > documentation?[/color]

    See the FAQ (<URL:http://jibbering.com/faq/>).
    [color=blue]
    > [...] For example with, document.getEle mentById(id), there is at
    > least style and rows properties and with rows you can get lenght:[/color]

    You misunderstand. The getElementById method returns a reference to an
    element, such as a TABLE or [A]nchor, based on the id attribute of
    elements in the document. Once you have a reference to an element, you
    can then access the properties associated with it. Each type of
    element will have its own set of properties.

    The style object is present on all HTML elements and is provided by
    most modern, scriptable browsers. It provides access to in-line style
    data. That is, CSS applied via a style attribute on that element or
    the style object itself.

    The rows object is a collection - sort of like an array, but has only
    a minimal set of properties and methods. You will find this only on
    TABLE and table section (TBODY, THEAD and TFOOT) elements. However,
    note that there is a rows property (a simple number, not an object) on
    TEXTAREA elements to reflect the rows attribute. A rows property (a
    string in this case) also exists on FRAMESET elements to reflect the
    rows attribute.
    [color=blue]
    > eg document.getEle mentById(id).St yle
    > document.getEle mentById(id).Ro ws.Length[/color]

    Be careful. ECMAScript (and therefore JavaScript and JScript) is
    case-sensitive. The style, rows, and length properties are all lowercase.
    [color=blue]
    > What I would really like is to be able to look at an object browser
    > which shows every property and method associated with the
    > javascript document object (and all of the other objects too but I
    > don't want to be greety!).[/color]

    Mozilla browsers have a built-in object browser that accompanies the
    DOM Inspector. To use it, target an object. In the left-hand panel,
    there is a drop-down box in the top-left. Select "Javascript Object".

    Note that no two browsers will have an identical object model. Even
    standardised models will not be implemented in full by all user
    agents, and you will also encounter proprietary properties
    (particularly on IE).

    [snip]

    Hope that helps,
    Mike

    --
    Michael Winter
    Replace ".invalid" with ".uk" to reply by e-mail.

    Comment

    Working...