I am not sure if I'm describing this correctly but basically I have two classes.
Class 1: A navigation class that has an onclick event handler for each button
Class 2: This class will call and display the page with the following method: moveTo(index);
I'm trying to accomplish a way for Class 2 to know when a menu button has been clicked and then display the page accordingly.
What methodology can I use to accomplish this?
Thanks for helping!
Start Free Trial