From: Raymond I. <xw...@ya...> - 2003-10-07 02:21:31
|
Try using getHTML(): var lp = new LoadPanel(); ... // some code here ... lp.addEventListener({ onchange : function(e){ var o = e.getSource(); alert(o.getHTML()) } }); -- Raymond Irving --- Yanglong Zhu <yz...@ou...> wrote: > Hi everyone, > > I'm trying to load content to a form dynamically > with LoadPanel(); So > far I can only LoadPanel() as an independent element > as on the 3.x demo > page. Although I could add stuff inside the > loadpanel, I can't find a > way to add the loaded content into a form element. I > tried use innerHTML > and document.getElementById(). I actually can get > the id, but > document.getElementById() yields null. I believe > there is a DynAPI > native way to do this. I DynAPI does have internal > getInnerHTML() > methods. But I don't know how to use that kind > function my self. > > Please help. > > Yanglong Zhu > __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |