librelist archives

« back to archive

vCard Update

vCard Update

From:
Chathura Wijesinghe
Date:
2014-05-08 @ 11:04
Hi All,

How can I update user's vCard, please provide sample code.


Thank you,
Chathura.

Re: [conversejs] vCard Update

From:
Jc Brand
Date:
2014-05-09 @ 10:34
On Thu, May 08, 2014 at 04:34:24PM +0530, Chathura Wijesinghe wrote:
>    Hi All,
>    How can I update user's vCard, please provide sample code.
>    Thank you,
>    Chathura.

Hi Chathura

You cannot update a user's vCard via converse.js.

Regards
JC

Re: [conversejs] vCard Update

From:
Mohit Jain
Date:
2014-05-13 @ 09:00
Hi,

I am using converse.js for chatting purpose. My requirement is whenever 
some body send an message to me that message should be appear in an inbox.
Then I can able to select that message from the inbox, chat window should 
be open for chatting.

1. Could you please help me, how can I achieve this.
2. Need information about database connectivity and insert update.

Thanks,
Mohit Jain 


From: JC Brand <lists@opkode.com>
To: conversejs@librelist.com 
Sent: Friday, 9 May 2014 4:04 PM
Subject: Re: [conversejs] vCard Update


On Thu, May 08, 2014 at 04:34:24PM +0530, Chathura Wijesinghe wrote:
>    Hi All,
>    How can I update user's vCard, please provide sample code.
>    Thank you,
>    Chathura.

Hi Chathura

You cannot update a user's vCard via converse.js.

Regards
JC

conversejs query

From:
Mohit Jain
Date:
2014-05-13 @ 09:05
 
Hi,

I am using converse.js for chatting purpose. My requirement is whenever 
some body send an message to me that message should be appear in an inbox.
Then I can able to select that message from the inbox, chat window should 
be open for chatting.

1. Could you please help me, how can I achieve this.
2. Need information about database connectivity and insert update.

Thanks,
Mohit Jain 


From: JC Brand <lists@opkode.com>
To: conversejs@librelist.com 
Sent: Friday, 9 May 2014 4:04 PM
Subject: Re: [conversejs] vCard Update


On Thu, May 08, 2014 at 04:34:24PM +0530, Chathura Wijesinghe wrote:
>    Hi All,
>    How can I update user's vCard, please provide sample code.
>    Thank you,
>    Chathura.

Hi Chathura

You cannot update a user's vCard via converse.js.

Regards
JC

Re: [conversejs] conversejs query

From:
Jc Brand
Date:
2014-05-13 @ 09:45
Hi Mohit

Your requirements are too vague. What is the inbox exactly? A DOM element, a
Javascript object or what?

Additionally, you ask about "database connectivity", what database are you
talking about?

Same with "insert update".

Regards
JC

On Tue, May 13, 2014 at 05:05:14PM +0800, Mohit Jain wrote:
>     
>    Hi,
>    I am using converse.js for chatting purpose. My requirement is whenever
>    some body send an message to me that message should be appear in an inbox.
>    Then I can able to select that message from the inbox, chat window should
>    be open for chatting.
>    1. Could you please help me, how can I achieve this.
>    2. Need information about database connectivity and insert update.
>    Thanks,
>    Mohit Jain 

Re: [conversejs] conversejs query

From:
Mohit Jain
Date:
2014-05-13 @ 10:35
Hi Jc Brand,
 
Thanks for reply.
 
Below is my requirement. 
 
1. The chat inbox is a pop-up window which recieves pending chat requests 
from users which have an account on the XMPP server which my 
applciation is using. The inbox is expected to have some fields like the 
following:
     Req 
No.                Message                                                
       Status
      1               <message from user1 with a 
hyperlink>                     New
      2               <message from user2 with a 
hyperlink>                 In-Progress
 
So Message is the hyperlink, when I click on each message text then single
user chat popup is expected to open and I should be able to chat with the 
user. The status of the incoming chat should change from 'New' to 
'In-progress'.
 
My questions on the above are:
 
1. As per my requirement, how can I initiate a chat with a user without 
adding him/her as a contact i.e. I want an anonymous chat functioanlity. 
(Context of the question: I should be able to initiate chat with any 
user-message that is received in the inbox)
2. What all parameters are required for a single user chat to be 
initiated? (Context of the question: I have integrated Conversejs with my 
application and the JID for each user is stored in the application 
session. The incoming requests for chat are from users that are not using 
my application/my system.)
3. Because I want a different kind of inbox, I will have to create a DB 
schema of my own. Hence, can you please give me pointers on how to connect
with the database and issue insert or update commands through conversejs.
4. As per the conversejs documentation, in order to keep the chat session 
intact upon reloading of page, incremented value of the last rid has to be
passed however, this is not working in my application. Http-404 'Invalid 
SID' is the error that is found in the console. We tried resolving the 
issue by incrementing the value by 50, but even that did not help. 
(https://github.com/jcbrand/converse.js/issues/148)
 
We really appreciate your help on this.
 
Thanks
Mohit Jain.
 
From: JC Brand <lists@opkode.com>
To: conversejs@librelist.com 
Sent: Tuesday, 13 May 2014 3:15 PM
Subject: Re: [conversejs] conversejs query


Hi Mohit

Your requirements are too vague. What is the inbox exactly? A DOM element, a
Javascript object or what?

Additionally, you ask about "database connectivity", what database are you
talking about?

Same with "insert update".

Regards
JC

On Tue, May 13, 2014 at 05:05:14PM +0800, Mohit Jain wrote:
>     
>    Hi,
>    I am using converse.js for chatting purpose. My requirement is whenever
>    some body send an message to me that message should be appear in an inbox.
>    Then I can able to select that message from the inbox, chat window should
>    be open for chatting.
>    1. Could you please help me, how can I achieve this.
>    2. Need information about database connectivity and insert update.
>    Thanks,
>    Mohit Jain 

Re: [conversejs] conversejs query

From:
Jc Brand
Date:
2014-05-22 @ 06:36
On Tue, May 13, 2014 at 06:35:27PM +0800, Mohit Jain wrote:
>    Hi Jc Brand,
>     
>    Thanks for reply.
>     
>    Below is my requirement.
>     
>    1. The chat inbox is a pop-up window which recieves pending chat requests
>    from users which have an account on the XMPP server which my
>    applciation is using. The inbox is expected to have some fields like the
>    following:
>         Req
>    No.                Message                                               
>           Status
>          1               <message from user1 with a
>    hyperlink>                     New
>          2               <message from user2 with a
>    hyperlink>                 In-Progress
>     
>    So Message is the hyperlink, when I click on each message text then single
>    user chat popup is expected to open and I should be able to chat with the
>    user. The status of the incoming chat should change from 'New' to
>    'In-progress'.
>     
>    My questions on the above are:
>     
>    1. As per my requirement, how can I initiate a chat with a user without
>    adding him/her as a contact i.e. I want an anonymous chat functioanlity.
>    (Context of the question: I should be able to initiate chat with any
>    user-message that is received in the inbox)

XMPP servers can be configured to allow anonymous login.

http://prosody.im/doc/anonymous_logins

However, you cannot chat with other users without having added them to your
contacts roster.

The only way I'm aware that you can chat with other users without having added
them as contacts is through a MUC chatroom.

See:

http://stackoverflow.com/questions/1958763/how-can-anonymous-users-exchange-presence-information-with-valid-users-on-jabber

http://www.tigase.org/content/how-configure-xmpp-allow-all-logged-user-see-each-other-and-chat-each-other

>    2. What all parameters are required for a single user chat to be
>    initiated? (Context of the question: I have integrated Conversejs with my
>    application and the JID for each user is stored in the application
>    session. The incoming requests for chat are from users that are not using
>    my application/my system.)

You need the JID of the other user you want to chat with, you need to add that
user as a contact and they need to accept your contact request.

>    3. Because I want a different kind of inbox, I will have to create a DB
>    schema of my own. Hence, can you please give me pointers on how to connect
>    with the database and issue insert or update commands through conversejs.

This question reveals a fundamental lack of understanding how XMPP and
converse.js works.

There is no database involved in constructing a chat box, chat room or some
kind of inbox for various messages.

There are only XML messages (called stanzas) sent between XMPP clients and
servers.

The closest thing that comes to a database is the MVC code written with
backbone.js in converse.js, which renders the chat boxes and chat rooms and
which is persisted in the browser's localStorage.

XMPP servers might have database implementations, but they are treated like
black boxes from a client author's perspective.

>    4. As per the conversejs documentation, in order to keep the chat session
>    intact upon reloading of page, incremented value of the last rid has to be
>    passed however, this is not working in my application. Http-404 'Invalid
>    SID' is the error that is found in the console. We tried resolving the
>    issue by incrementing the value by 50, but even that did not help.
>    ([1]https://github.com/jcbrand/converse.js/issues/148)

Like I mentioned on the ticket. You'll have to debug the cause.

You already know that you have an invalid SID, so now you have to figure out
why. No amount of incrementing the RID is going to fix the fact that you have
an invalid SID. Not by 50, not by 500.

The SID is supposed to stay constant and the RID must get incremented.

- JC

>    We really appreciate your help on this.
>     
>    Thanks
>    Mohit Jain.
>     
>    From: JC Brand <lists@opkode.com>
>    To: conversejs@librelist.com
>    Sent: Tuesday, 13 May 2014 3:15 PM
>    Subject: Re: [conversejs] conversejs query
>    Hi Mohit
> 
>    Your requirements are too vague. What is the inbox exactly? A DOM element,
>    a
>    Javascript object or what?
> 
>    Additionally, you ask about "database connectivity", what database are you
>    talking about?
> 
>    Same with "insert update".
> 
>    Regards
>    JC
> 
>    On Tue, May 13, 2014 at 05:05:14PM +0800, Mohit Jain wrote:
>    >     
>    >    Hi,
>    >    I am using converse.js for chatting purpose. My requirement is
>    whenever
>    >    some body send an message to me that message should be appear in an
>    inbox.
>    >    Then I can able to select that message from the inbox, chat window
>    should
>    >    be open for chatting.
>    >    1. Could you please help me, how can I achieve this.
>    >    2. Need information about database connectivity and insert update.
>    >    Thanks,
>    >    Mohit Jain 
> 
> References
> 
>    Visible links
>    1. https://github.com/jcbrand/converse.js/issues/148

Re: [conversejs] conversejs query

From:
Mohit Jain
Date:
2014-05-15 @ 14:49
Hi All,

Any suggestion on my query.

Thanks,
Mohit Jain
On Tuesday, 13 May 2014 4:05 PM, Mohit Jain <mohit_jain_mrt@yahoo.co.in> wrote:
  
Hi Jc Brand, 
  
Thanks for reply. 
  
Below is my requirement.  
  
1. The chat inbox is a pop-up window which recieves pending chat requests 
from users which have an account on the XMPP server which my 
applciation is using. The inbox is expected to have some fields like the 
following: 
     Req 
No.                Message                                                
       Status 
      1               <message from user1 with a 
hyperlink>                     New 
      2               <message from user2 with a 
hyperlink>                 In-Progress 

So Message is the hyperlink, when I click on each message text then single
user chat popup is expected to open and I should be able to chat with the 
user. The status of the incoming chat should change from 'New' to 
'In-progress'. 

My questions on the above are: 

1. As per my requirement, how can I initiate a chat with a user without 
adding him/her as a contact i.e. I want an anonymous chat functioanlity. 
(Context of the question: I should be able to initiate chat with any 
user-message that is received in the inbox) 
2. What all parameters are required for a single user chat to be 
initiated? (Context of the question: I have integrated Conversejs with my 
application and the JID for each user is stored in the application 
session. The incoming requests for chat are from users that are not using 
my application/my system.) 
3. Because I want a different kind of inbox, I will have to create a DB 
schema of my own. Hence, can you please give me pointers on how to connect
with the database and issue insert or update commands through conversejs. 
4. As per the conversejs documentation, in order to keep the chat session 
intact upon reloading of page, incremented value of the last rid has to be
passed however, this is not working in my application. Http-404 'Invalid 
SID' is the error that is found in the console. We tried resolving the 
issue by incrementing the value by 50, but even that did not help. 
(https://github.com/jcbrand/converse.js/issues/148) 

We really appreciate your help on this. 

Thanks 
Mohit Jain. 

From: JC Brand <lists@opkode.com>
To: conversejs@librelist.com 
Sent: Tuesday, 13 May 2014 3:15 PM
Subject: Re: [conversejs] conversejs query
 

Hi Mohit

Your requirements are too vague. What is the inbox exactly? A DOM element, a
Javascript object or what?

Additionally, you ask about "database connectivity", what database are you
talking about?

Same with "insert update".

Regards
JC

On Tue, May 13, 2014 at 05:05:14PM +0800, Mohit Jain wrote:
>     
>    Hi,
>    I am using converse.js for chatting purpose. My requirement is whenever
>    some body send an message to me that message should be appear in an inbox.
>    Then I can able to select that message from the inbox, chat window should
>    be open for chatting.
>    1. Could you please help me, how can I achieve this.
>    2. Need information about database connectivity and insert
 update.
>    Thanks,
>    Mohit Jain