Results 1 to 2 of 2

Thread: Accessing DOM methods through Element?

  1. #1
    Sencha User thejoker101's Avatar
    Join Date
    Mar 2007
    Posts
    349
    Vote Rating
    0
      0  

    Default Accessing DOM methods through Element?

    Is there a way to get access to the DOM methods and properties of a node through element?

    For example:
    document.getElementById('node').disabled or
    document.getElementById('node').checked

    I thought I saw something in the Extensions code something like
    YAHOO.ext.Element.get('node').dom.disabled

    Is this the proper way to do this? If so, it doesn't seem to be documented so I wasn't sure.

    Thanks for clarification.

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956
    Vote Rating
    20
      0  

    Default

    Yes, the dom property gives access to the raw node. interesting it doesn't appear in the documentation since it looks like this:

    Code:
        /**
         * The DOM element
         * @type HTMLElement
         */
        this.dom = dom;
    Good ole JSDoc must be ignoring it.

Similar Threads

  1. add/remove QuickTips methods/functions
    By Nullity in forum Community Discussion
    Replies: 6
    Last Post: 10 Apr 2007, 6:17 AM
  2. accessing and updating underlying xml from the grid-Ext 1.0
    By Eric_ht in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 21 Mar 2007, 1:52 PM
  3. accessing XML data from JSON sent by DWR
    By young_matthewd in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 7 Mar 2007, 7:08 AM
  4. DefaultDataModel row methods marked as private
    By jarrod in forum Ext 1.x: Bugs
    Replies: 2
    Last Post: 27 Nov 2006, 6:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •