Okay, the code is now:
var layer1 = this.document.all['panel1']
layer1.moveTo(100,100)
Thanks for that reminder. I knew about that problem but didn't notice it
here.
Unfortunately the previous mentioned error still remains.
Could you help answer my previous question though? Not only am interested
in solving this immediate problem, I am also interested in learning more
about the inner working of the API. I am never just content to use
something like this; I also have to know how it works. =)
Where and when is the "DynAPI.document.all" object constructed?
-- Matthew Shirey
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Pascal
Bestebroer
Sent: Tuesday, December 19, 2000 11:24 AM
To: [EMAIL PROTECTED]
Subject: RE: [Dynapi-Help] Inline Layers NS6, help tracing problem...
if your <div> layer is called layer1, try renaming your var layer
differently.. might solve the problem (IE trips over it, so maybe NS6 also)
Pascal Bestebroer
[EMAIL PROTECTED]
http://www.dynamic-core.net
> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Namens Matthew Shirey
> Verzonden: dinsdag 19 december 2000 20:02
> Aan: Dynapi-Help
> Onderwerp: [Dynapi-Help] Inline Layers NS6, help tracing problem...
>
>
> Hey all,
>
> Well, I have posted twice trying to get help with inline layers in NS 6.
> Because there seems to be very little DynAPI specific information on the
> problem I am trying to trace it and understand more about how DynAPI works
> in the process so maybe I can help solve some of these problems in the
> future.
>
> Okay, I have read just about everything I can get my hands on concerning
> DHTML in NS 6. It is all pretty simple and I think I have good
> grasp of it.
> But so far I have not been able to determine exactly where in DynAPI the
> problem is. I need to know that before I can begin to fix it.
> So with the
> help of the list I am going to try and track it down.
>
> I am basing all of my NS6 tests on the inline sample in the examples
> directory.
>
> Here is the code that triggers the error message:
>
> var layer1 = this.document.all['layer1']
> layer1.moveTo(100,100)
>
> The error message is:
>
> layer1 has no properties
>
> This happens on the line where the moveTo() method is called.
>
> This tells me that "this.document.all['layer1']" did not return the object
> that was expected. So this is where I'll start.
>
> Where and when is the "DynAPI.document.all" object constructed?
>
>
> -- Matthew Shirey
>
>
> _______________________________________________
> 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
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-help