File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to render an html table in a text area?

 
Max Tomlinson
Ranch Hand
Posts: 365
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 365
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
works just fine...

thanks Eric
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic