I recently
downloaded dynacore.2001.02.24.zip
from http://www.dynamic-core.net/tools/dynacore/index.htm ,
and tried to use it with some of my previous DHTML using a previous
version. It worked fine in NS but I couldn't get it to work on IE,
finally narrowed the problem down to dynacore.api.layer.js file
using the function getContentHeight() -- it's missing the return statement for
ie.
/* Starting on line 352 it has:
*/
DynLayer.prototype.getContentHeight=function()
{
if (this.elm==null) return
else {
if (is.ns4) return this.doc.height
else if (is.ie) parseInt(this.elm.scrollHeight)
else return parseInt(this.elm.offsetHeight)
}
}
if (this.elm==null) return
else {
if (is.ns4) return this.doc.height
else if (is.ie) parseInt(this.elm.scrollHeight)
else return parseInt(this.elm.offsetHeight)
}
}
/* It shoud be:
*/
DynLayer.prototype.getContentHeight=function()
{
if (this.elm==null) return
else {
if (is.ns4) return this.doc.height
else if (is.ie) return parseInt(this.elm.scrollHeight)
else return parseInt(this.elm.offsetHeight)
}
}
if (this.elm==null) return
else {
if (is.ns4) return this.doc.height
else if (is.ie) return parseInt(this.elm.scrollHeight)
else return parseInt(this.elm.offsetHeight)
}
}
I even went back to the original zip file and
opened it directly from the zip file in case
I was somehow using the wrong one, and it was in the original zip
file.
Thomas Leishman
Animator & Webmaster
Avaltus, Inc.
