there's a bug on mac IE5 which causes the=20
layer to move when content is written to it.
(using .innerHTML which the ie-part of setHTML()=20
uses to write content to DynLayers)

the fix is pretty easy, just include a linebreak, \n
at the end of the setHTML() call:

.setHTML('<table><tr><td>jadsfhajshfkjlasdhf</td></tr></table>\n');

this should work, cannot test it right now, but i'v
been using it before and it worked fine.

maybe we should include this fix into the API? something like this:
this.elm.innerHTML=3Dhtml + (is.ie5 && is.platform=3D=3D'mac' && =
html.indexOf('</table>')!=3D-1)? '\n' : '';

'\n' should not be stored in the .html property.

/martn


----- Original Message -----=20
From: "Matthew Alan Shirey" <[EMAIL PROTECTED]>
To: "Dynapi-Help" <[EMAIL PROTECTED]>
Sent: Friday, January 26, 2001 8:40 PM
Subject: [Dynapi-Help] Arg, Help w/ setHTML and Tables


> Hey all,
>=20
> I have a pretty big problem and I am hoping someone can at least point =
me
> in the right direction for fixing the API.  It appears that using =
setHTML
> containing a TABLE causes all layers after it to not appear in Mac IE =
5.
> Here's an example:
>=20
> http://bridgedev.ctlt.wsu.edu/LS/test/dynapi/test.asp
>=20
> This should place three very simple boxes labeled "A", "B", and "C".  =
This
> works fine on IE and NS on PC, and NS 6 on Mac, but IE 5 on the Mac =
does not
> show the second or third box...  This is fairly important to me unless
> someone has another method to control horizontal and vertical text =
alignment
> in a layer... =3D(
>=20
> M.
>=20
>=20
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help




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

Reply via email to