-
17 Oct 2006 7:03 AM #11
To the parent. I want to receive the following html code:Add it to what? The child or the parent?Code:<div id="panel">link</div>
-
17 Oct 2006 7:04 AM #12
I think I understand - you want to insert raw HTML into the node without destroying the children?
You can do this with DomHelper.
Code:var panel = document.getElementById('panel'); var linkTemplate = new YAHOO.ext.DomHelper.Template('{0}'); linkTemplate.compile(); var elem = linkTemplate.overwrite(panel, ['link']); var onClick = function(){alert('test');} YAHOO.ext.EventManager.addListener(elem, 'click', onClick); YAHOO.ext.DomHelper.insertHtml('beforeEnd', panel, '');
-
17 Oct 2006 7:08 AM #13
You are cool, Jack. Thank you very much.I think I understand...
Similar Threads
-
YAHOO.ext.Element and addListener
By alex1er in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 18 Feb 2007, 2:57 AM -
YAHOO.ext.Element.get
By jclawson in forum Ext 1.x: BugsReplies: 2Last Post: 7 Feb 2007, 10:04 AM -
YAHOO.ext.Element Display
By ojintoad in forum Ext 1.x: Help & DiscussionReplies: 6Last Post: 1 Jan 2007, 2:20 AM -
Updating YAHOO.ext.Element update
By scottw in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 14 Dec 2006, 6:32 AM


Reply With Quote