Unanswered: pass a function reference
I've created a controller function that loads data from the server. When the ajax call is complete, I want to call another function that is not known at design time. I assume there is a way to pass a callbackFunction reference into the loadData function to be called once complete. Depending on the state of my app, I may want to call any number of functions but I don't want to hardcode anything in the ajax success event other than calling the passed in function reference.
Best practice, thoughts, direction?
Thanks in advance,