Hi,
That's a nice start, I noticed one or two things:

If I remember correctly, a loadpanel will trigger onload after
go_dynobj.setHTML("no file loaded");
This might be causing the error in IE5.5.
So maybe you want to put a dummy run_Calc() function in the mainpage,
that'll be overwritten when loading the calc page:

run_Calc=function(){}

Or, test if the BA array exists: (line 106)

if(self['BA']){
    run_Calc()
}

The resize code follows the same syntax as the DynAPI.onLoad code, like
this: (line 143)

DynAPI.onResize=function() {
  TaskBar.setSize(document.body.offsetWidth-20,TaskBarH);
  TaskBar.moveTo(0,document.body.offsetHeight-TaskBarH-4);
}
(BTW you can get browser width cross-browser like this:
TaskBar.setSize(DynAPI.document.getWidth(),TaskBarH);)

and line 117 can be deleted, and on line 157 this: " onresize="body_resize()
" can be deleted.
I'm not sure if we also have a DynAPI.onUnLoad=function(){}

In calc.html, you might want to include all the script inside the <body>
tags, I think that gives the best cross-browser performance.

Regarding memory leak, if you're using the large "all-widgets" download from
my site, you should update the DynAPI files with the latest release
available at http://dynapi.sourceforge.net (the older ones have a memory
leak)

Cheers,
Richard
www.richardinfo.com



----- Original Message -----
From: "Antti Lukats" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 12, 2001 9:10 AM
Subject: [Dynapi-Dev] Hello Welcome, new demo site also


> Hi
>
> http://www.graphord.com/desk/
>
> is currently only viewable with IE (I mocked up with adding HM_Menus....)
>
> The Calculator demo, is loaded from external file if you click on icon or
> start->Programs->Calculator
>
> hm... this is my first try with dynAPI, and I managed to get most browser
go
> crazy
> IE5.5 LEAK's about 1MB every page reload and NS 4.7 makes GPF fault's !!!
:(
>
> well has been fun sofar anyway
>
> antti
> PS I am mainly checking out if there are live one on the list
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dynapi-dev
>


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to