Are you setting the .id property by any chance? With the new
DynObject you should never need to set the id of the layer. So if you
set it, it will effect the .toString method that is called whenever
its evaluated and cause it to fail.
--
Robert Rainwater
On 4/9/2001, 9:43:12 PM EST, Richard wrote about "[Dynapi-Help] DynObject is null
bug?":
> Hi,
> While trying to convert some widgets to 2.5 I'm getting the following error message
>often:
> DynObject.all.WidgetName0 is null or not an object.
> This happens if you try to reference the widget itself, for instance in the
>precreate eventlistener you do:
> o.setHTML('<a href="#" onmousedown="'+o+'.moveTo(250,250)">try me</a>')
> I also tried using toString() but it doesn't help:
> o.setHTML('<a href="#" onmousedown="'+o.toString()+'.moveTo(250,250)">try me</a>')
> And if I do it like this:
> o.setHTML('<a href="#" onmousedown="'+o.moveTo(250,250)+'">try me</a>')
> The expression seems to be evaluated at creation, and the move takes place without
>clicking the link.
> I'm having this problem in Pascal's LayerX and LayerY widgets amongst others.
> Does anyone know what's going on?
> Cheers,
> Richard Bennett
> [EMAIL PROTECTED]
> www.richardinfo.com
> (Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2)
> visit the DynAPI homepage (and FAQ) ::
> http://dynapi.sourceforge.net/dynapi/index.php?menu=1
> Browse (and search) the mailinglist here:
> http://www.mail-archive.com/index.php3?hunt=dynapi
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help