Issue while trying open chat room

3 views
Skip to first unread message

uday kiran

unread,
Mar 10, 2010, 8:41:50 AM3/10/10
to ijab-...@googlegroups.com
Hi All,
         I have exposed an API to open chat room
which looks like 


  public static void openChatRoom(String userName, String password, final String roomJid )   {
 if(JabberApp.instance().connected())
 {
 RoomChatWindow.openRoom(XmppID.parseId(roomJid), JabberApp.instance().getNick());
 }
 else
 {
 JabberApp.instance().run(userName,password,true,new LoginListener()
 {
public void onLogined() 
{
RoomChatWindow.openRoom(XmppID.parseId(roomJid), JabberApp.instance().getNick()); }
 });
 }
  }

and  here is my API 
 
    function openMULNChatRoom(user,pass,room)
    {
     wait_for_script_load( 'openChatRoom');
     openChatRoom(user,pass,room+"@conference.chat.manipalu.com");
     return false;
    }

I am able to openroom only when I click it twice
I was just seeing firebug on hwat what is happening I see the following is getting posted and it is waiting waiting continously..



<body rid='478842' sid='32081c84' xmlns='http://jabber.org/protocol/httpbind' key='291dbb8bde34ebe3cabc602091344eeebd0c0d01' />

Can someonehelp me out this.

Regards
Uday
--
"Obstacles are what you see when you take your eyes off the goal"

Reply all
Reply to author
Forward
0 new messages