Items 1-12 out of 19652 displayed
See how to grab the cell value...
Move the click handler into a separate function, for example:
var selectedCat = 0;
function OnCategoryClick(btn){
selectedCat = btn.getAttribute(data-catId);...
To access it the same way as you would in modern browsers, you'll want to add the method to Window
, HTMLDocument
, and Element
prototypes.
One way of accomplishing this is emitting a redirect event to your client, and handling the redirect on their end.
var destination = '/index.html';...
I'm a developer at Contentful and I think I can help with the second part of your question.
As for the first part, greuze's answer is the ideal thing to do if you're in node land. An...