Closed Thread Icon

Preserved Topic: I just found a solution to a nasty gotcha! (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=17863" title="Pages that link to Preserved Topic: I just found a solution to a nasty gotcha! (Page 1 of 1)" rel="nofollow" >Preserved Topic: I just found a solution to a nasty gotcha! <span class="small">(Page 1 of 1)</span>\

 
Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 09-20-2000 03:42

A warning to all dhtml types who are dynamically writing html code into your layerdivs.

I am doing this extensively on my home page and on a new photo gallery page. There is a nasty bug that occurs on Internet Explorer 5 Macintosh Edition. If you write a table in your layerdiv, IE5 royally screws it up and squashes all your content into one line.

Here is an example of a page that is messed up, remember this only affects IE5 Macintosh:
http://www.natwest.com/

Here is an example of problem code:

document.all.layername.innerHTML = "<table><tr><td>blah blah blah</td></tr></table>";

In order to avoid this nasty problem you need to place a newline code "\n" at the end of the string and it will work fine. The corrected code would look like this:

document.all.layername.innerHTML = "<table><tr><td>blah blah blah</td></tr></table>\n";

Is anyone using IE5 on the Mac??? I wouldn't have even known about it but I just got a Mac at work.

little osh
Bipolar (III) Inmate

From: Wales, UK
Insane since: Jun 2000

posted posted 09-20-2000 05:38

I guess it's not very dificult to find that bug once you've got a Mac. But how on earth did you find that solution? Quite impressive!

osh

tea
Nervous Wreck (II) Inmate

From: Bern, Switzerland
Insane since: Aug 2000

posted posted 09-21-2000 18:11

hey, i got the same problem on my last website. it was also discussed in this forum.
http://www.ozones.com/forum/Forum6/HTML/000129.html

doc gave me the tip to specify height and width in the styles. it seems to work(with ie4 on mac)

cu, tea




Tea Sign

« BackwardsOnwards »

Show Forum Drop Down Menu