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
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
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=3header/td
/tr
tr
tdstuff/td
tdthe most stuff/td
tdstuff/td
/tr
tr
td
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:
table
tr
td colspan=3header/td
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:
table
tr
td colspan=3header/td
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
-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 have a table set up with a main content cell
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:
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
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 (thead and th), body (tbody), and footer (tfoot)
elements that you can and should use, as well as a caption (optional).
Your table
-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 from reading up that innerHTML
Thierry Koblentz wrote:
And the node looks like this:
div id=newsnode!!main_content!!/div
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
And the node looks like this:
div id=newsnode!!main_content!!/div
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 happens when
13 matches
Mail list logo