Tuesday, June 5, 2007

XUL + xmpp4moz + SamePlace Suite : Problem encountered

- I have a working html+js codes that can capture xmpp packets when launched together with SamePlace Suite (SPS).
- The plan is to understand the packet structure and internal functions (as shown in previous post) that xmpp4moz used to send xmpp packet. To do that, I try to port the html+js codes, into XUL+js codes.
- Here is a demo chat page I've created using XUL.











- Unfortunately, according to the developement docs [here, and here], SPS uses
tags with id = 'xmpp_incoming' to capture the packet, generated by the xmpp4moz lib internally.
- Since I'm using XUL, I've tried to find an equivalent replacement for
tags in XUL, but to no avail.
- I've already post this problem in their google group. Will search for other solution while waiting for their answer. [ may not be necessary since you can use the ff html/xml renderer to draw the incoming xml packets from xmpp4moz ]
See tutorial on how to add html elements to the XUL UI

2 comments:

mersing said...

Instead of trying to XUL to render the xml from xmpp4moz, use XUL as the user interface renderer only. Render the xml ( div tags etc ) using the firefox html renderer and not using the XUL renderer, since XUL only lays out the UI.

Note the browser works, in this way. Mozilla & FF lay out the user interface using XUL, but the xml and html are rendered using the xml/html renderer and not XUL renderer. This way you can change the look and feel of the browser (buttons & layout ) without affecting the incoming html pages.

H said...

Thanks for the idea Mr. Shahril. I've created a working version using XUL + XHTML. There's a way of using XHTML element inside a .xul file. I've already post the solution on my latest entry.

The idea is for now, we MUST have 2 divs, to catch the incoming and outgoing xmpp packet. The rest of the page can be designed using XUL, and interactivity or dynamic element can be triggered using Javascript. Pleased refer to my latest post for the working demo.