SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    May 2007
    Location
    London UK
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question HTML Table Generator - Any Recommendations?

    Can any of you recommend a GOOD online HTML table generator. I need one for non-html clients to generate the mark-up for tables they are dropping into the html source view of a WYSIWYG editor. Needs to offer variable cols/rows/head and input the cell data and then generate and offer to copy.

    I don't want it to offer background colours/borders or any inline/css styling as I'm controlling that with an external css file. Ideally needs to include <thead>, <tbody> & <tfoot> tags so they can generate similar to the following;

    Code:
    		<table summary="Term Dates">
    			<thead>
    				<tr>
    					<th>
    						Term
    					</th>
    					<th>
    						From
    					</th>
    					<th>
    						To
    					</th>
    				</tr>
    			</thead>
    			<tbody>
    				<tr>
    					<td>
    						Autumn
    					</td>
    					<td>
    						Date 1
    					</td>
    					<td>
    						Date 2
    					</td>
    				</tr>
    				<tr class="odd">
    					<td>
    						Winter
    					</td>
    					<td>
    						Date 1
    					</td>
    					<td>
    						Date 2
    					</td>
    				</tr>
    				<tr>
    					<td>
    						Spring
    					</td>
    					<td>
    						Date 1
    					</td>
    					<td>
    						Date 2
    					</td>
    				</tr>
    				<tr class="odd">
    					<td>
    						Summer
    					</td>
    					<td>
    						Date 1
    					</td>
    					<td>
    						Date 2
    					</td>
    				</tr>
    			</tbody>
    		</table>
    The best one i've found so far is at http://tablegen.nfshost.com/index.py...HTML+for+Table
    but it doesn't offer <thead>, <tbody> & <tfoot>. Kotatsu http://www.askthecssguy.com/kotatsu/index.html is also nearly there but fails on the same issue.

    Any recommendations?

  2. #2
    SitePoint Wizard bronze trophy bluedreamer's Avatar
    Join Date
    Jul 2005
    Location
    Middle England
    Posts
    3,349
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    SitePoint Member
    Join Date
    May 2007
    Location
    London UK
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's pretty close bluedreamer! Has <thead>, <tbody> etc and they can copy the markup alone. Just a shame they can't input the cell data into the table before copying.

    Thanks for the link

  4. #4
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,786
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    I have one at http://javascript.about.com/library/bltablegen.htm that sticks different dummy text in each of the cells so as to make it easy to tell what content you want to insert where.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •