librelist archives

« back to archive

code that i used, but didn't work. control box not showing.

code that i used, but didn't work. control box not showing.

From:
Deepak Tomar
Date:
2014-12-19 @ 02:47
code that i used, but didn't work. control box not showing. please check
code and log also


require(['converse'], function (converse){

        connection = new Strophe.Connection(BOSH_SERVICE);

        connection.connect(_JID, _JID_PASS, function () {

        _SID = connection._proto.sid;
        connection.pause()
        converse.initialize({
             bosh_service_url: 'http://54.69.166.107:5280/http-bind/', //
Please use this connection manager only for testing purposes
                            i18n: locales['en'], // Refer to
./locale/locales.js to see which locales are supported
                            keepalive: true,
                            play_sounds: true,
                            roster_groups: true,
                            show_controlbox_by_default: true,
                            debug: true,
                            xhr_user_search: true,
                            auto_list_rooms: true,
                            auto_subscribe: true,
                            hide_muc_server: true,
                            roster_groups: true,

            jid: _JID,
            sid: _SID,
            rid: connection._proto.rid,//_RID,
            prebind: true,
        });

    });
});


********************************************************************
Log

localhost/:13 GET

http://localhost/converse/converse.js-0.8.6/components/bootstrap/dist/css/bootstrap.min.css

localhost/:14 GET

http://localhost/converse/converse.js-0.8.6/components/fontawesome/css/font-awesome.min.css

converse.website.min.js:402 0 _throttledRequestHandler called with 1
requests
converse.website.min.js:402 0 request id 1.0 posting
converse.website.min.js:402 0 request id 1.0 state changed to 1
converse.website.min.js:402 0 request id 1.1 state changed to 2
converse.website.min.js:402 0 request id 1.1 state changed to 3
converse.website.min.js:402 0 request id 1.1 state changed to 4
converse.website.min.js:402 0 removing request
converse.website.min.js:402 0 _throttledRequestHandler called with 0
requests
converse.website.min.js:402 0 request id 1 should now be removed
converse.website.min.js:402 0 request id 1.1 got 200
converse.website.min.js:402 1 _connect_cb was called
converse.website.min.js:402 0 _throttledRequestHandler called with 0
requests













-- 
Regards
Deepak Tomar
+91-9827041196

Re: [conversejs] code that i used, but didn't work. control box not showing.

From:
Jc Brand
Date:
2014-12-19 @ 12:21
On Fri, Dec 19, 2014 at 08:17:00AM +0530, Deepak Tomar wrote:
>    code that i used, but didn't work. control box not showing. please check
>    code and log also
>    require(['converse'], function (converse){                
>            connection = new Strophe.Connection(BOSH_SERVICE);
>            connection.connect(_JID, _JID_PASS, function () {
>            _SID = connection._proto.sid;
>            connection.pause()

Why do you call "connection.pause()" here?

If you have an authenticated connection, then you can also just pass that in
directly to converse.js instead of using the prebind option.

Re: [conversejs] code that i used, but didn't work. control box not showing.

From:
Deepak Tomar
Date:
2015-01-02 @ 05:56
Hi,

How i can change Chat UI, I want to apply my site theme on chat. please
guide me how to make this

On Fri, Dec 19, 2014 at 5:51 PM, JC Brand <lists@opkode.com> wrote:

> On Fri, Dec 19, 2014 at 08:17:00AM +0530, Deepak Tomar wrote:
> >    code that i used, but didn't work. control box not showing. please
> check
> >    code and log also
> >    require(['converse'], function (converse){
> >            connection = new Strophe.Connection(BOSH_SERVICE);
> >            connection.connect(_JID, _JID_PASS, function () {
> >            _SID = connection._proto.sid;
> >            connection.pause()
>
> Why do you call "connection.pause()" here?
>
> If you have an authenticated connection, then you can also just pass that
> in
> directly to converse.js instead of using the prebind option.
>



-- 
Regards
Deepak Tomar
+91-9827041196

Re: [conversejs] code that i used, but didn't work. control box not showing.

From:
Jc Brand
Date:
2015-01-07 @ 11:34
On Fri, Jan 02, 2015 at 11:26:04AM +0530, Deepak Tomar wrote:
>    Hi,
>    How i can change Chat UI, I want to apply my site theme on chat. please
>    guide me how to make this 

Please send a new email with a new subject when you want to discuss a new
topic.

In any case, you apply a theme by modifying the HTML files and then changing
the CSS.

The HTML files are here:
https://github.com/jcbrand/converse.js/tree/master/src/templates


>    On Fri, Dec 19, 2014 at 5:51 PM, JC Brand <[1]lists@opkode.com> wrote:
> 
>      On Fri, Dec 19, 2014 at 08:17:00AM +0530, Deepak Tomar wrote:
>      >    code that i used, but didn't work. control box not showing. please
>      check
>      >    code and log also
>      >    require(['converse'], function (converse){                
>      >            connection = new Strophe.Connection(BOSH_SERVICE);
>      >            connection.connect(_JID, _JID_PASS, function () {
>      >            _SID = connection._proto.sid;
>      >            connection.pause()
> 
>      Why do you call "connection.pause()" here?
> 
>      If you have an authenticated connection, then you can also just pass
>      that in
>      directly to converse.js instead of using the prebind option.
> 
>    --
>    Regards
>    Deepak Tomar
>    +91-9827041196
> 
> References
> 
>    Visible links
>    1. mailto:lists@opkode.com