Thats most likely because the image hasn't loaded yet. If you want to
wait until then you say:
DynImage.onLoaderDone = function() {
alert(testimage.w)
}
--
Robert Rainwater
On 4/11/2001, 12:25:25 PM EST, Gregor wrote about "[Dynapi-Help] Example of failure in
NS":
> The following code fails in NS. I've looked at the DynAPI code but
> can't quite figure it out:
> DynAPI.onLoad = function()
> {
> testimage = new
> DynImage('../src/lib/dynapi/images/common/arrowup.gif');
> DynAPI.document.addChild( testimage );
> alert( testimage.w );
> }
> In IE and NS4.75 I get a value of 28
> in NS6 I get NULL
> Any help would be appreciated, thanks.
> Gregor
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help