> On Oct 1, 2016, at 3:31 PM, Rich Podraza <[email protected]> wrote:
> 
> 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? 

I'm not sure how to help you, without seeing your code.

Maybe let's start with...

What is the code you added to the jade template?

What is the HTML that was generated by that addition?


-- 
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/59773DFA-2CCD-4D40-853C-885FB9073F34%40ryandesign.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to