Wednesday, June 6, 2007

TrueTalk on XUL

- why XHTML?
- Easier to code, similar to HTML but stricter.
- Supported in all current browser.
- will be rendered without problems on mobile devices.
- ref

- impressive demo of XUL + XHTML (interface-wise)
- to include HTML elements inside XUL, need to add "xmlns:html="http://www.w3.org/1999/xhtml" in [window] tag
- define html element as , eg
: [html:element][/html:element], eg: [html:div id="xmpp-incoming" style="border: 1px black solid"][/html:div]

- Successful attempts:
- Transform the demo chat app codes from html -> XUL+XHTML - It works!
- I've tried to put in on my server, but apparently my server need some configuration to display .xul files correctly. But you can still get it here, and launch it locally. Let's try it together when we are both online.
- Once launched alongside SPS, both side of the chatroom must 'enable' the XHTML page in the right panel first, then only can start chatting on that page.
- The SPS right panel will then be disabled, meaning every message typed from it will not be sent.
- SPS way of doing things : Load XHTML file inside XUL page. Placement may use 'overlays'.
- Overlay = An overlay is used when it is desirable for a block of content to be shared between several different windows. In addition, it can be used to append or alter content in an existing window. An overlay is defined in a separate XUL file. Overlays are applied while the XUL is being loaded. (Works similar to CSS?)
- A Screeny to top it of.












- Links collection
- XUL Periodic table - http://www.hevanet.com/acorbin/xul/top.xul
- CSS Query @ http://blog.hyperstruct.net/2007/5/16/sameplace-spinoffs-1-css-query
- XHTML Validator @ http://validator.w3.org/

- So next, maybe i'll be focussing on how SPS connect to GTalk, and try to implement the codes inside this demo of mine.

No comments: