From: Joachim K. <ko...@ma...> - 2009-05-12 15:38:47
|
Just a remark for the record: the webview seems only to accept urls beginning with http:// In the webview demo if you just write google.com, nothing happens. I suppose this is just Apple's specification of what an url is. But then I suggest we adjust proc hidemo::viewUrl {token} { set wbvw [hiview subview prev $token] set url [hiview configure $token -text] hiview configure $wbvw -url $url } to proc hidemo::viewUrl {token} { set wbvw [hiview subview prev $token] set url [hiview configure $token -text] if { ![regexp "://" $url] } { set url "http://$url" hiview configure $token -text $url } hiview configure $wbvw -url $url } Cheers, Joachim. |