Chowdary Basha | Hi,
I would like to use jabberwerx.TemporaryEntity(jid, cache), so that I can add a contact to the client.entitySet temporarly and get the presence of the user. I am able to add the contact using the following code var jid= 'abc@cisco.com'; //sample jid/string contact is not in my actual list of users. It a new contact for which I just wants its presence status var entity = client.entitySet.entity(contact); if(!entity){ entity = new jabberwerx.TemporaryEntity(jid, client.entitySet); alert("entity.getDisplayName()-->"+entity.getDisplayName()); alert("entity.jid-->"+entity.jid); alert("entity.properties-->"+entity.properties); alert("entity.getPrimaryPresence() if-->"+entity.getPrimaryPresence()); //returns null } alert("entity.getPrimaryPresence() out-->"+entity.getPrimaryPresence());// returns null But I am not able to retrieve the presence of this particular contact. Could you please provide any code snippet that can help me in retrieving the presence of this particular contact. or what kind of event do I need to bind so that I can get the presence of this user.
Thanks Haji |
| Please sign in to flag this as inappropriate. |