[thelist] [JS]: document.write vs innerHTML

J.J.SOLARI jjsolari at pobox.com
Tue Oct 17 07:58:22 CDT 2000


On Mon, 16 Oct 2000 10:51:29 -0700 (PDT), Ben Henick <persist1_pdx at yahoo.com>
wrote:

>Message: 3
>Date: Mon, 16 Oct 2000 10:51:29 -0700 (PDT)
>From: Ben Henick <persist1_pdx at yahoo.com>
>Subject: Re: [thelist] [JS]: document.write vs innerHTML
>To: thelist at lists.evolt.org
>Reply-To: thelist at lists.evolt.org

>> P.S.: This page is online at: <http://www.yoyodesign.org/tmp/cb.html>
>
>Perhaps I'm being too simplistic to be any help, but what is the chance
>that the absence of content in the named DIV is making the browser
>bitchy?

Ben,

Same is happenning (still one row instead of two) with or without content in the
div.

I finally managed to this hack:

if(ie){
document.all.palette.innerHTML =
'<script>document.writeln(tmp);document.close();<\/script>' ;
}

See test page at: <http://www.yoyodesign.org/tmp/cb2.html>

Thanks for your suggestion,

JJS.
-- 
/* public key id: 9eb99ddb <http://www.keyserver.net/> */
/* homepage <http://www.yoyodesign.org/> */






More information about the thelist mailing list