Thank you for that piece of information.  I have already checked out
inline.js.  I cannot see a problem there though. It correctly uses this line
to get the collection of divs:

if (is.ns5) divs=dyndoc.doc.getElementsByTagName("DIV");

I have verified that this is the proper method for use in NS 6.
I am not mistaken that (is.ns5) is actually the test for NS 6 right?  It
seems that way in browser.js.
I think I understand most of what is going on in the inline.js file.  I am a
little confused about the getModel() method though but I am not sure it
applies to the current problem.

-- Matthew Shirey

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Cameron Hart
Sent: Tuesday, December 19, 2000 11:17 AM
To: [EMAIL PROTECTED]
Subject: RE: [Dynapi-Help] Inline Layers NS6, help tracing problem...

I haven't done any DynAPI development myself, but I think what you want to
look at is the inline.js extension. As far as I know it traverses the
browsers DOM looking for DIV's and builds the DynAPI.document.all object,
which is used by the DynAPI as a kind of cross-browser document.layers
array. But all the browser DOM's are different, so how inline.js finds all
those inline DIV's is different. If you work out how to find DIV's in the
document in NS6 then you're part way there. The next challenge is to find
child layers, or DIV's inside DIV's.

Sorry if that's a bit of a crap explanation, but I don't really know what
I'm talking about and I'm in a bit of a hurry :-)

try looking at http://developer.netscape.com/tech/dom/ or
http://www.mozilla.org/docs/web-developer/ for more info on DOM-1


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Matthew
> Shirey
> Sent: 19 December 2000 19:02
> To: Dynapi-Help
> Subject: [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

Reply via email to