Monday 5 June 2017

Accessing node.js on server side from html page

I have node.js working with Express and MySQL and accessing the database correctly. However, 90% of my web page is static, and a button click needs to send a YouTube channel id to look up the ApiKey on the server side, and retrieve the Playlist.

Example: http://localhost/playlist.html?channelId=channelid

I need the html page to access node.js for the ApiKey and subsequently use the ApiKey to retrieve the YouTube playlist, all on the server side.

I can't seem to find any answers on how to do this... or, maybe I just don't understand the answers I've seen.



via CapnPamma

No comments:

Post a Comment