XUL

サーバー側の日時を定期的に表示

XUL

XMLHttpRequest()でサーバー側の日時を定期的に表示する。取り合えず1秒間隔。 ポーリングはサーバー側で行っている(んだよな?)。 clock.xul <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script src="clock.js"/> </window>

テキストファイルを読んで表示

XUL

XMLHttpRequest()でファイルを"GET"して、その中身を表示しましょうよと。 hello.xul <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script src="hello.js"/> </window>

XULでHello, world!

XUL

ズールってみるのに、まずはHello, world!から。 index.html <html> <head> <title>Hello World.</title> </head> <body> <a href='javascript:void(window.open("chrome/content/hello.xul", "HELLO", "chrome,centerscreen,resizable"));'>Hello, world!</a> </body> </html>