I'm currently playing with strophe.js, backbone.js & wijmo (UI library based on jquery UI) and working on a chat interface. I have two dialog boxes, one is the contacts list, the other one will be the chat container. Chat will be organized in tabs with the classic jquery UI markup:
<div id="tabs">
<ul>
<li><a href="#tabs-1">Chat 1</a></li>
<li><a href="#tabs-2">Chat 2</a></li>
<li><a href="#tabs-3">Chat 3</a></li>
</ul>
<div id="tabs-1"><!-- Content chat 1 --></div>
<div id="tabs-2"><!-- Content chat 2 --></div>
<div id="tabs-3"><!-- Content chat 3 --></div>
</div>
Each individual chat container will contain a participants list (multi-user chat), the messages and a form.
Being fairly new to Backbone & underscore, I'm wondering what's the best way to handle this. I started with a Chat model, a Chats collection, a chat view and a chat list view but I don't find a proper way to render the tabs and keep it updated.
Any ideas ?