This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HTMLEditorKit SCRIPT content tag disappears after read  RSS feed

s Joshi
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to read and display an HTML Document using JEditorPane and HTMLEdiorKit. I am overridding javax.swing.text.html.HTMLDocument.HTMLReader class to read HTML document. My javascript content(functions) disappers when I read the html document. It only displays

<script type="text/javascript">

All the content of the script disappears.

I tried to register script tag with a tag action class, still I can't see content.

I tried to use the orginal HTMLReder. It didn't help.

Any help is appreciated.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!