Hello! I'm using node.js to make a webpage that interacts with a twitter api. When I was using .ejs files the code worked, now I've changed it to .html files and it doesn't work anymore. Basically, server-side I do this:function gotData(err,data,response){ res.render('tweets.html',{ data: data[0]}); } data is the data I want to display, problem is that when writingvar value = data.trends[i].name; data is not recognised, while using .ejs extension it was! What can I do to correctly send and use this "data" information? Thanks
Submitted December 04, 2017 at 09:52AM by snakethesniper
No comments:
Post a Comment