The problem seems to be the onresize handler in the loadpanel
constructor function. if you comment out the onresize handler in
loadpanel then this works in netscape 4 + 6. I think the onresize
handler is reponsible for other problems in loadpanel as well, but
unfortunately i don't know why.
i did notice that with the onresize handler enabled, when you put a
loadpanel into a scrollpane, two calls to setURL are made. One I guess
when the loadpanel is created, and then probably one caused by a resize
event happening somewhere.
i guess if you don't need to dynamically resize your scrollpane you can
probably safetly comment out the onresize handler.
cam.
[EMAIL PROTECTED] wrote:
> Bugs item #452050, was opened at 2001-08-17 06:38
> You can respond by visiting:
> http://sourceforge.net/tracker/?func=detail&atid=105757&aid=452050&group_id=5757
>
> Category: DynAPI 2 API
> Group: None
> Status: Open
> Resolution: None
> Priority: 5
> Submitted By: Christopher Lee (chungyeah)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: loadpanel inside scrollpane error
>
> Initial Comment:
> use loadpanel inside the scrollpane work fine in IE ,
> but not in NS4 & 6.
>
> code like this
>
> ////////////////////////////////////////////////////
> DynAPI.onLoad = function() {
> lp = new LoadPanel();
> lp.setHTML("wait a moment ...");
> lp.setURL('new.html');
> lp.setSize(400,400); // height will be overwritten by
> default
> lp.moveTo(520,250);
>
> counter = 0;
> var el = new EventListener();
> el.onload = function(e) {
> status = 'got load event '+ counter++;
> }
> lp.addEventListener(el);
>
> scrollobj = new ScrollPane(lp) // set as the content
> scrollobj.setSize(400,400)
> scrollobj.moveTo(520,250)
> scrollobj.setBgColor('#000000')
>
> DynAPI.document.addChild(scrollobj)
> }
>
> it show correct in IE , But in NS4 can show the
> loadpanel but the scrollpane fuction fail and In NS6
> can't show anything ....
>
> Can anyone solve this problem ??
>
> ----------------------------------------------------------------------
>
> You can respond by visiting:
> http://sourceforge.net/tracker/?func=detail&atid=105757&aid=452050&group_id=5757
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>
>
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev