librelist archives

« back to archive

Reg: StropheError Cannot queue non-DOMElement.

Reg: StropheError Cannot queue non-DOMElement.

From:
Gowthaman m
Date:
2014-10-18 @ 12:27
Hi All


  while load page i need to connect 3 group at time

_each([group1, group12, group3],function(gp,index){
     convers.joinGroups(gp , "confrence@xx.com");
  });


*converse:*
'joinGroups': function (group, roomService) {
            var history_attrs = {
                maxstanzas: '25'
            };
            group = group + '@' + roomService;
            var chatView = converse.chatboxesview.views[group];
            if (chatView) {
                converse.chatboxesview.views[group].closeChat();
            }

            var chatroom = converse.chatboxesview.showChatBox({
                'id'       : group,
                'jid'      : group,
                'name'     : Strophe.unescapeNode(Strophe.getNodeFromJid(
group)),
                'nick'     : converse.userName,
                'chatroom' : true,
                'box_id'   : hex_sha1(group)
            });
            if (!chatroom.get('connected')) {
                converse.chatboxesview.views[group].connect(null,
history_attrs);

            I GOT ERROR "*StropheError  Cannot queue non-DOMElement.*"
            }

         },


*Please anyone guide to me resolve the error *





Thanks

Gowthaman M <http://erated.me/p/gowthaman-murugan/>