Hi everybody!


I have discovered that Mac IE 5.0 (MAC ONLY!) has problems when unloading a
DynAPI powered website if the site had DynLayers added to a DynDocument that
was created for a certain frame (see Pascal's tutorials part 6). Please note
that adding DynLayers to "DynAPI.document" works fine (even on unload)!

Scenario:

* create a frameset with 2 frames
* one frame loads DynAPI, the other loads an (empty) page
* in the DynAPI.onLoad function, create a DynDocument for the other frame
and do a DynAPI.addChild() for it
* add a DynLayer to the new DynDocument

As soon as you unload the page, IE will return an error messages.

I have tracked this problem down to the DynLayer.specificRemove() function:

Line 114 reads: "if (is.def && this.elm) {". Since "is.def" is true for Mac
IE5, it seems that "this.elm" is true also. But when you try to access
"this.elm" (e.g. "alert(this.elm)") Mac IE 5 shows the error mentioned
above. All commands regarding "this.elm" in the "if" statement will cause
that error to appear! I have a workaround as follows: replace line 114 with:
"if (is.def && is.platform=='win32' && this.elm) {". But maybe there's a
better way around (since this is working for DynAPI.document, which is also
a DynDocument).

Any comments are very welcome! :-)


Best regards,

Christof


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

Reply via email to