[Javascript] innerHTML assignment overflows TD cell in FF

Troy III Ajnej trojani2000 at hotmail.com
Sun Jun 1 08:58:05 CDT 2008


Netscape was never fit for dynamicity. Not even now (after more 
than 11 years), it still fails to handle and render dynamic content 
properly.
 
You might solve this issue if you find a way to force the browser to
reflow its content. Because it will not do it out of its politeness. 
 
What happens if you dynamically add another shorter content than 
the previous? I guess you will find a hole there. 
 
Dinosaurs are lazy breed, that's why they died in the first place. 
 
It is hopefuly possible to force mozilla reflow this cell by once again
specifying the width of it along with innerHTML injection command. 
 
But before you try this or other similar trials, like reseting te fontsize
that might also trigger the content reflow forcedly, make sure you 
didn't specify the hight of cells Since in this casse, even if you
successfully reflow the table your problem with firefox will remain
unsoved! 
Because here you'll be dealing yet with another netscape ackward 
programming decision: The content bleeding.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                        Troy III                            progressive art enterprise~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



> Date: Thu, 29 May 2008 18:39:51 -0500> From: skip at bigskypenguin.com> To: javascript at lists.evolt.org> Subject: [Javascript] innerHTML assignment overflows TD cell in FF> > Hey all,> > I have a table set up with a main content cell in > the center column of three, basically like this:> > <table>> <tr>> <td colspan="3">header</td>> </tr>> > <tr>> <td>stuff</td>> <td>the most stuff</td>> <td>stuff</td>> </tr>> > <tr>> <td colspan="3">footer</td>> </tr>> <table>> > On the server side I build a content page and user > innerHMTL=content;> > ..in JS code to insert the content into the column > labeled "the most stuff".> > The problem is when that column has less content, > and then shifts to more content the latter part of > the content runs over the footer below the main > content row.> > This is ONLY happening in Firefox, IE on windows > works fine. Firefox has the problem on both Linux > and Windows.> > Any help would greatly, greatly appreciated.> -- > Skip Evans> Big Sky Penguin, LLC> 503 S Baldwin St, #1> Madison, WI 53703> 608-250-2720> http://bigskypenguin.com> =-=-=-=-=-=-=-=-=-=> Check out PHPenguin, a lightweight and versatile> PHP/MySQL, AJAX & DHTML development framework.> http://phpenguin.bigskypenguin.com/> _______________________________________________> Javascript mailing list> Javascript at lists.evolt.org> http://lists.evolt.org/mailman/listinfo/javascript
_________________________________________________________________
Change the world with e-mail. Join the i’m Initiative from Microsoft.
http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ChangeWorld


More information about the Javascript mailing list