You have to use the pushpanel in conjunction with loadpanel.
try using:
// call a new load panel object
lp = new LoadPanel();
lp.setSize(250,50); // height will be overwritten by default
lp.moveTo(200,100);
// attach an event listener on it (not sure if you will need this with what
you are doing)
counter = 0;
var el = new EventListener();
el.onload = function(e) {
status = 'got load event '+ counter++;
}
lp.addEventListener(el);
// call a new pushpanel object and pass in the "loadpanel" object (lp) in
the "constructor"
pushpanelV = new PushPanel(lp);
pushpanelV.setVertical();
pushpanelV.setSize(150,150);
pushpanelV.moveTo(200,50);
DynAPI.document.addChild(pushpanelV);
// finally, set the URL of the loadpanel object to your external file
// I tried doing this before the "pushpanel" was added and it was
bombing... this has to be called after
// the pushpanel object is added to the document
lp.setURL("file.htm");
Hope this helps.
Chris
----- Original Message -----
From: "AT" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 03, 2001 1:59 PM
Subject: [Dynapi-Help] Pushpanel widget
> Hi all..
> Maybe this will seem obvious, but it's not much time since I began reading
> this list.
> I've downloaded the last snapshot of the DynAPI2, and I was trying to
> upgrade something I created with the DynAPI1.
> First thing I've noticed, the Pushpanel doesn't seem to allow loading
> content from a file. This being exactly what I need, I'd like to know
whether:
> a) I'm totally blind. It can, and I'm wrong.
> b) It could be done with some help from a loadpanel (how? anybody did it?
> some hints?);
> c) that's entirely another widget, and there's already someone working on
> it (who?).
>
> Thanx, anyway...
>
> TBlack
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/mailman/listinfo/dynapi-help
>
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-help