Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
kscap #1
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
-
MyDogBerkeley #2
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



Reply With Quote

