HTML

subclass of Widget
creates a HTML display widget. The HTML class is based on the html widget by D. Richard Hipp if present as a loadable package. It understands HTML 3.2. Forms support is not incorporated yet. If the compiled html widget is not found, ClassyTk reverts to the Tcl-only html library by Stephen Uhler that understands HTML 2.0. The HTML class adds things such as asyncronous transfers and history.

HTML specific options

Command-Line Name: -url
Database Name: url
Database Class: Url
Command-Line Name: -indent
Database Name: indent
Database Class: Indent
Command-Line Name: -update
Database Name: update
Database Class: Update
Command-Line Name: -tab
Database Name: tab
Database Class: Tab
Command-Line Name: -unknown
Database Name: unknown
Database Class: Unknown
Command-Line Name: -size
Database Name: size
Database Class: Size
Command-Line Name: -symbols
Database Name: symbols
Database Class: Symbols
Command-Line Name: -tagmap
Database Name: tagMap
Database Class: TagMap
Command-Line Name: -insertmap
Database Name: insertMap
Database Class: InsertMap
Command-Line Name: -errorcommand
Database Name: errorCommand
Database Class: Command
Command-Line Name: -state
Database Name: state
Database Class: State
Command-Line Name: -wrap
Database Name: wrap
Database Class: Wrap
Command-Line Name: -hyperlinkcommand
Database Name: hyperlinkCommand
Database Class: HyperlinkCommand
Command-Line Name: -yscrollcommand
Database Name: yscrollCommand
Database Class: Command
Command-Line Name: -xscrollcommand
Database Name: xscrollCommand
Database Class: Command
Command-Line Name: -font
Database Name: font
Database Class: Font

HTML specific methods

pathname geturl url
pathname reload
pathname back
pathname forward
pathname history
pathname load file
pathname set html
pathname source
returns current source
pathname clearcache
clears the image cache
pathname stop
stop loading current page
pathname fullurl url
pathname spliturl url
splits the given url into a list containing {protocol host file name}
pathname linkat x y
returns the link (href) at position x,y. This is used in comination with bindlink to change the behaviour of links.
eg.:
 objectName bindlink <3> {puts [%W linkat %x %y]}
pathname bindlink ?event? ?sequence?
binds action to a certain event happening on a link
eg.:
 objectName bindlink <3> {puts [%W linkat %x %y]}
pathname getdata ?options? url
gets data from a certain url