Nowjs expressjs 3.0

89 views
Skip to first unread message

Jojje

unread,
May 28, 2012, 6:41:32 AM5/28/12
to Express
I´m trying to get nowjs to work with expressjs 3.0alpha4. I´ve added
the script to my view like so:
<script src="/nowjs/now.js"></script>

And have also tried:
<script src="https://localhost/nowjs/now.js"></script>

But all i get is a:
GET https://localhost/nowjs/now.js 403 (Forbidden)

Have anyone gotten this to work with expressjs 3.0.?

Piotr Rybałtowski

unread,
May 28, 2012, 8:07:52 AM5/28/12
to expre...@googlegroups.com
On Mon, May 28, 2012 at 12:41 PM, Jojje <george...@gmail.com> wrote:
I´m trying to get nowjs to work with expressjs 3.0alpha4. I´ve added
the script to my view like so:
<script src="/nowjs/now.js"></script>

And have also tried:
<script src="https://localhost/nowjs/now.js"></script>

Just make sure - you should have this file added in your app structure as /public/nowjs/now.js - is that as you have it?

Piotrek

Jojje

unread,
May 28, 2012, 8:35:12 AM5/28/12
to Express
Well with nowjs you are not required to host the now.js file yourself,
but even if i do. I get: Now is not defined. Is there a way to get
this to work in express3 or do i have to use express2.*?

On 28 Maj, 14:07, Piotr Rybałtowski <prybaltow...@gmail.com> wrote:

Anand George

unread,
May 28, 2012, 9:10:35 AM5/28/12
to expre...@googlegroups.com
Have you tried the helloworld_example which does not require express, just to be sure that it's an 'express' problem.

--
You received this message because you are subscribed to the Google Groups "Express" group.
To post to this group, send email to expre...@googlegroups.com.
To unsubscribe from this group, send email to express-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/express-js?hl=en.


Jojje

unread,
May 28, 2012, 10:00:50 AM5/28/12
to Express
I will try that and get back. Thanks
Reply all
Reply to author
Forward
0 new messages