Using now.js with Appcelerator #159

Closed
scottburch opened this Issue Dec 2, 2011 · 3 comments

Comments

Projects
None yet
3 participants

I have found the way to use now.js with Appcelerator and wanted to document it somehow so that others can find it.

This is from theindex.html in my desktop project

    <script src="http://localhost:3000/nowjs/now.js"></script>
    <script>var nowjs = nowInitialize('http://localhost:3000',{});</script>

I'm not sure why 'now' does not work other than it calls the wrong uri and may setup two objects. But, using the noconflict method (called initialize) works great for me.

Instead of now.xxxx use nowjs.xxxx

Contributor

steveWang commented Dec 30, 2011

You should probably set autoHost in your server-side config to false, in this case. What URI does the autohosted now call?

@ghost

ghost commented Jan 7, 2012

I also have this problem and trying to figure out a solution, its a socket.io problem I believe.

Contributor

ericz commented Jan 16, 2012

If there are further issues with this, try the google group http://groups.google.com/group/nowjs?pli=1

ericz closed this Jan 16, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment