Some questions

54 views
Skip to first unread message

Morhaus

unread,
Jan 15, 2012, 9:57:12 AM1/15/12
to nowjs
Hello.
I use window.now = nowInitialize(...) to connect to the server, and
now.core.socketio.disconnect() to disconnect from the server. Is there
a way to reconnect to another server using nowInitialize or another
function, without reloading the page ?

Is there also a way to include the now.js script from a distant server
(ex: github) directly into another script ? Currently, I just copy/
paste it at the top of my script, but I'd like to load it dynamically.

Thanks.

Eric Zhang

unread,
Jan 16, 2012, 4:07:05 PM1/16/12
to no...@googlegroups.com
Hi Morhaus,

You should be able to call nowInitialize again to connect again?

In order to load the script dynamically you can use one of the many dynamic javascript loaders available. Unfortunately NowJS doesn't have this functionality built-in.


Eric
--
Co-Founder @ Flotype, makers of NowJS

Morhaus

unread,
Jan 23, 2012, 8:20:56 AM1/23/12
to nowjs
Thanks for your reply.

Another question : is it possible to broadcast a function to a group
except to the user who called it?

On Jan 16, 10:07 pm, Eric Zhang <e...@nowjs.com> wrote:
> Hi Morhaus,
>
> You should be able to call nowInitialize again to connect again?
>
> In order to load the script dynamically you can use one of the many dynamic
> javascript loaders available. Unfortunately NowJS doesn't have this
> functionality built-in.
>
> Eric
>

Eric Zhang

unread,
Jan 23, 2012, 2:45:20 PM1/23/12
to no...@googlegroups.com
Hey Morhaus,

Yes. Check out the exclude API 


Eric
Reply all
Reply to author
Forward
0 new messages