I am generating a menu and for each of the menu items I need to fire an onclick event that does something within hype.
var Counter = "'counter'"; var Slides = data.feed.entry[i].gsx$slide.$t var Names = data.feed.entry[i].gsx$name.$t var Links = '<a href="#" onclick="getElementById(' + Counter + ').innerHTML = ' + Slides + ', window.clickCount = '+ Slides +' ;">'+ Names +'</a>';
This part works. Clicking on an item in the resulting menu changes the clickCount and displays it in the innerHTML of the counter. I also have an Init function:
window.clickCount = 0; hypeDocument.getElementById("counter").innerHTML = window.clickCount;
and Increase function like this:
window.clickCount += 1; hypeDocument.getElementById("counter").innerHTML = window.clickCount;
The Increase function is working, and when Increase is called the “counter” innerHTML is updated with a higher number.
Here is the problem:
Here is a stripped down version of the project: CustomDeckStripped.zip (21.5 KB)