I'm new to web development (have a C++/Java background) I'm looking for some help with some simple modification I'm making to the node-login project as an exercise.
I hope I can describe my problem helpfully without posting a bunch of code here. I've added a button to the home page (modifying the home.jade) that is supposed to navigate to a new page I've made called "about". I've added an about.jade, and the get handler in routes.js. I've added the button handling code in homeController.js. So my button doesn't work. However, I can manually navigate to localhost:3000/about and the page loads fine. When I set breakpoints I can see that both clicking the button and navigating manually result in the routes.js get function executing and calling render for my about page. I can also see with the Firefox debug network activity log that I get a response with the expected HTML for my GET about, and the HTML is the same for both methods. The only difference I can see is with the manual navigation method that works, I also get a bunch of GET exchanges for some scripts included in about.jade. With the button method, those don't fire. The log stops with GET about. Any ideas? I'm not sure where to look. Any other info I can provide? Thanks! -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/fd13fb5f-fd2a-4c4e-92e7-2a499ccd1757%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
