Beauregard T. Shagnasty wrote:
Michael Gordon wrote:
Agnes wrote:
Is there a simple way to sort them? Thanks!
No. I cannot find any way to sort the contents of a table in HTML.
Only with manual editing. HTML is not a programming language. :-)
There is an option you can try. Create a table with all the columns and
headers you need.
Inside the columns place the "Pre" tag, and between the <pre> and </pre>
tags place pre-sorted content.
That suggestion sure seems like overkill. The columns are defined by the
<td></td> elements, so any "placing" would have to be done manually into
each and every single cell. Quite tedious.
Best bet is the "use Excel, pre-sort, export as HTML" recommendation. This
is the simplest way.
2nd-best is to use a database to draw from the server via a script (PHP
and MySQL, etc).
Beauregard,
Using Microsoft Excel to export as HTML purely sucks. Microsoft uses
proprietary coding that works well with IE, but falls flat on its face
for standards compliant web browsers.
Using Excel to store the original data records and sort those records
works well. Copying a specific column in Excel works well, and then
pasting that content into a HTML table cell works well.
The idea was not to create a HTML table with dozens of rows, columns,
and cells, but to create one table with one row, and as many columns as
needed to contain the required data types. Each column/row equals one
cell.
After Excel sorts the columns, copy the column as text, and paste the
copied text into the HTML column/row where the data belongs.
If the first column in Excel is a "Key Field" when that column is sorted
all the other columns will sort as related to the key fields. The sort
order will transfer to all other columns and the sort will maintain its
correct integrity.
It is a long way around accomplishing the task, but it is a doable
workaround.
It would be much better to use a Server Side Include (SSI) type option,
less work for the web site manager, and quicker for the data manager.
Michael G
--
Armadillo Web Development
www.armadilloweb.com
Cell: 903.244.3644
Opening your Door to Opportunity
and inviting the world to walk through.
Character is doing the right thing...
Even when no one is watching...
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey