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 <[EMAIL PROTECTED]> 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
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help