wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes How to render an html table in a text area? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to render an html table in a text area?" Watch "How to render an html table in a text area?" New topic
Author

How to render an html table in a text area?

Max Tomlinson
Ranch Hand

Joined: Jul 17, 2001
Posts: 365
Hi all-

I want a scrollable result table so I'm thinking I need to render the html table in a textarea. Can I do this? So far I've tried create a text node (of the table) and setting it as the value of the textarea but all I get is [object HTMLTableElement] in my display. How can I iterate thru the html table and render it and still make it functional (able to respond th events)?

thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Text area is for plain text.

If you want to be able to scroll a table, put it inside of a scrollable div

<div style="width:100px;height:100px;overflow:auto;">
table here
</div>
Max Tomlinson
Ranch Hand

Joined: Jul 17, 2001
Posts: 365
works just fine...

thanks Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to render an html table in a text area?