-
Notifications
You must be signed in to change notification settings - Fork 2
WebDialog.set_html
Thomas Thomassen edited this page Jun 2, 2013
·
3 revisions
The effect of setting the HTML content of a webdialog differ between platform:
# Not cross platform compatible!
w = UI::WebDialog.new
w.set_html( '<textarea>Hello</textarea>' )
w.show
Under OSX the result is a HTML page with a textbox control.
Under Windows you get a window which says '<textarea>Hello</textarea>'
. In order for the content to be treated as HTML under Windows you must include at least a <body>
element first.
# Cross platform compatible!
w = UI::WebDialog.new
w.set_html( '<body><textarea>Hello</textarea>' )
w.show