PDA

View Full Version : Alternative root node for Ext dynamically created DOM elements?



headshotonly1shotwillkill
26 Aug 2010, 7:51 AM
Greetings,

I am wondering if there's a possibility to set the root node for autocreated DOM elements of Ext (windows, tooltips, etc..) to something else than <body>. For instance the current version produces



<body class="ext-ie ext-ie7">
...content, content, content...


<div class="x-ttip"> ..... </div>
<div class="x-dd-drag-proxy x-dd-drop-nodrop"> ... </div>
<div class="x-resizable-proxy x-unselectable"> ... </div>
...same for windows and more...
</body>


and what I am willing to achieve is



<body class="ext-ie ext-ie7">
...content, content, content...

<div class="belongings_of_ext">
<div class="x-ttip"> ..... </div>
<div class="x-dd-drag-proxy x-dd-drop-nodrop"> ... </div>
<div class="x-resizable-proxy x-unselectable"> ... </div>
...same for windows and more...
</div>
</body>


or



<body>
...content, content, content...

<div class="BELONGINGS_OF_EXT ext-ie ext-ie7">
<div class="x-ttip"> ..... </div>
<div class="x-dd-drag-proxy x-dd-drop-nodrop"> ... </div>
<div class="x-resizable-proxy x-unselectable"> ... </div>
...same for windows and more...
</div>
</body>


where belongings_of_ext is a name for me to define.

How possible is that? Open to anything from proper solutions to hacks :)

Many thanks in advance!

headshotonly1shotwillkill
27 Aug 2010, 7:03 AM
Anyone? Paining to have a solution for that one, perhaps it's obvious but can't find "official" ways of such customization.