JavaScript in table tags
by "Hilma" <Hilma(at)hilma.freeserve.co.uk>
|
Date: |
Mon, 1 Apr 2002 15:32:45 +0100 |
To: |
<hwg-basics(at)hwg.org> |
References: |
|
|
todo: View
Thread,
Original
|
|
Having got my code working :-)
I decided to validate :-(
Most is getting sorted; but i have a problem with JS and tables.
I use tables to format my page:
a row across the top spanning 2 columns for my header-logo, (same in all
pages)
a fixed-width column on the Left for my nav-buttons, and (same in
all pages)
a wide column taking up the rest of the page for my content; (different)
a format that i believe is fairly standard ("correct my if i'm wrong").
However;
for my "prices" page, i include another table within the content-cell;
and i fill that using Javascript that multiplies up incrementing weights by
unit cost.
This works fine; *but*
when i try to validate my code, it tells me that i cannot have <script>
tags within my <table> definition.
I started moving the script out of the prices-table (putting the table
definition into the JS as
document.write("<table..> format)
But then i hit the fact that i was still within my main-table content-cell;
which I cannot really climb out of as the whole page is covered by a single
table.
my code is now at:
http://mysite.freeserve.com/bbm/PressGang6/PGHome6.html
and it is the Prices page giving me grief.
(Errors after the script/table errors are all due to the Freeserve-inserted
last line, which i can live with for now).
Many thanks for any help -
hilma
--x-----
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA