[WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Skip Evans
Hey all, I have a table set up with a main content cell in the center column of three, basically like this: header stuff the most stuff stuff footer On the server side I build a content page and

Re: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Adam Martin
Just put a clear both on the footer, i.e #footer { } On Fri, May 30, 2008 at 9:40 AM, Skip Evans <[EMAIL PROTECTED]> wrote: > Hey all, > > I have a table set up with a main content cell in the center column of > three, basically like this: > > > >header > > > >

Re: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Adam Martin
Sorry pushed return to quickly #footer { clear: both; } On Fri, May 30, 2008 at 9:40 AM, Skip Evans <[EMAIL PROTECTED]> wrote: > Hey all, > > I have a table set up with a main content cell in the center column of > three, basically like this: > > > >header > > >

Re: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Skip Evans
Hey, We tried that just before you sent the message through. Same results. Skip Adam Martin wrote: Sorry pushed return to quickly #footer { clear: both; } On Fri, May 30, 2008 at 9:40 AM, Skip Evans <[EMAIL PROTECTED]> wrote: Hey all, I have a table set up with a main content cell in t

RE: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Thierry Koblentz
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Skip Evans > Sent: Thursday, May 29, 2008 4:41 PM > To: wsg@webstandardsgroup.org > Subject: [WSG] innerHTML assignment overflows TD cell in FF > > Hey all, > > I h

Re: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Skip Evans
Hey, I see from reading up that innerHTML is not really standard, and not the best way to go. Was not aware of that and from the doc you send am now working on this: var maincontent=document.getElementById('newsnode'); maincontent.firstChild.nodeValue=ret; And the node looks like this: !!m

Re: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Skip Evans
Hey all, I got a little further with the following: var ret=serverFunction(url); var newsnode=document.getElementById('newsnode'); while(newsnode.firstChild) newsnode.removeChild(newsnode.firstChild); var txt = document.createTextNode(ret); newsnode.appendChild(txt); 1) I got the completed form

Re: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Jason Ray
This isn't necessarily answering your question, but in the interest of standards I thought I should point out that your table is not well formed. There are header ( and ), body (), and footer () elements that you can and should use, as well as a caption (optional). Your table should look something

RE: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Thierry Koblentz
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Skip Evans > Sent: Thursday, May 29, 2008 6:58 PM > To: wsg@webstandardsgroup.org > Subject: Re: [WSG] innerHTML assignment overflows TD cell in FF > > Hey, > > I see fro

Re: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Skip Evans
Thierry Koblentz wrote: And the node looks like this: !!main_content!! Try this: var maincontent=document.getElementById('newsnode'); maincontent.firstChild.data="Hello World!"; That is not changing the content of the div tag, or anything on the screen. -- Skip Evans Big Sky Penguin, L

RE: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-29 Thread Thierry Koblentz
> >> And the node looks like this: > >> > >> !!main_content!! > > > > Try this: > > > > var maincontent=document.getElementById('newsnode'); > > maincontent.firstChild.data="Hello World!"; > > > > That is not changing the content of the div tag, > or anything on the screen. It should. What happen

Re: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-30 Thread Svip
I think the entire problem here is the purely thought up structure. With JS, you shouldn't be parsing HTML at all, you should be working at DOM levelling, which means that you need to use createElement/TextNode and appendChild rather than innerHTML. Yes, that means that the PHP must ship the HTML

Re: [WSG] innerHTML assignment overflows TD cell in FF

2008-05-30 Thread Skip Evans
Hey Thierry & all, Well, for the heck of it I tried moving the functions that create the left and right blocks up above the code that fills in the center column, and it began then expanding the center column appropriately. Thierry's suggestion of executing that first.Child.data modificatio