Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default DW DOM

    anyone come across this?

    when i am using the DW DOM to determine which element is selected inside a
    table, whenever the <TD> element is selected the DOM keeps telling me that i am
    at the <TABLE> level, when i am clearly at the <TD> level.

    here is some sample code i am using to display the tag name of the currently
    selected node:

    theSelection = dom.source.getSelection();
    dom.setSelection(theSelection[0], theSelection[1]);
    theSelection = dom.getSelectedNode();
    alert("selection tag: " + theSelection.tagName + " parent tag: " +
    theSelection.parentNode.tagName);

    in this case, the complete <TD> element is highlighted but the value for
    theSelection.tagName alerts <TABLE>

    anyone have any ideas?

    kscap Guest

  2. #2

    Default DW DOM

    Hi,

    I am writing an extension where I would like notifications about selected
    objects. I know about getSelection() off of a dom but the DW app does not have
    a DOM itself (that I know of). What I mean is, what if the user selects a file
    in the file or asset browser panels in the dw app? Can I get a notification
    when items in these, and possibly other, panels are selected?

    And now for the harder question which I believe has an answer of no: Can I get
    notifications when the mouse is simply hovered over these items?

    I have written extensions in Firefox and it, being XUL, in principle has a dom
    associated with it. I have also done some XAML work for UI and the same
    applies.

    I want to customize DW at a deeper level than just changing menus in menus.xml
    and adding panels.

    Thanks
    Berke

    BTW - first time doing extensions in DW and am trying to see what the limits
    are.


    MyDogBerkeley Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139