librelist archives

« back to archive

Re: accessing converse object

Re: accessing converse object

From:
Jc Brand
Date:
2014-10-14 @ 16:36

Am 14. Oktober 2014 10:44:16 MESZ, schrieb Jothi Sankar 
<nk.jothisankar@gmail.com>:
>Hi,
>
>Sorry to ask this. I can able to inspect the converse object in browser
>console. and as you mentioned i can able to see the "ChatBoxView"as
>attribute of that and its also holding prototype of showMessage() but i
>can't able to call that method.
>
>I have use this code
>converse.ChatBoxView.showMessage(myJsonString);
>
>whats am doing wrong?

Read the code of the showMessage method instead of just blindly making 
assumptions. It expects an XML stanza IIRC, not JSON.

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Re: [conversejs] Re: accessing converse object

From:
Gowthaman m
Date:
2014-10-14 @ 17:57
@JC Nothing wrong
"converse.ChatBoxView.showMessage(myJsonString);" this should work

On Tue, Oct 14, 2014 at 10:06 PM, JC Brand <lists@opkode.com> wrote:

>
>
> Am 14. Oktober 2014 10:44:16 MESZ, schrieb Jothi Sankar <
> nk.jothisankar@gmail.com>:
> >Hi,
> >
> >Sorry to ask this. I can able to inspect the converse object in browser
> >console. and as you mentioned i can able to see the "ChatBoxView"as
> >attribute of that and its also holding prototype of showMessage() but i
> >can't able to call that method.
> >
> >I have use this code
> >converse.ChatBoxView.showMessage(myJsonString);
> >
> >whats am doing wrong?
>
> Read the code of the showMessage method instead of just blindly making
> assumptions. It expects an XML stanza IIRC, not JSON.
>
> --
> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
> gesendet.
>



-- 




Thanks

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