Wednesday, June 13, 2007

DEV: client-side demo app (No-GUI)

- connect ... DONE.
- Send Message
- add 3 more popup menu item:
- to login...SUCCESS
- to send message...SUCCESS
- to logout...SUCCESS
- Receive message:
- catch using channel.on() function...SUCCESS
- Display messages
- display in alert box, since no GUI
- ref @ http://dev.hyperstruct.net/xmpp4moz/wiki/DocLocalApplicationDevelopment
- unfortunately, since I don't have any GUI, my username and password must be hardcoded to connect and send message. Therefore, I can't enclose a demo for this post.

How-to run:












0) Install extension! !) Restart/Launch Firefox
2) Right-click anywhere on the page
3) Goto TrueTalk > Login / Send Message / Logout
3.1) Login - login to gmail with hardcoded username and password.
3.2) Send Message - send a fixed message to a fixed receiver.
3.3) Logout - Logout from gmail.
4) Received messages (not fixed) will be displayed in alert box.

No comments: