Hi, I have a question around the relationship between Model and Controller and the refresh mechanism:
I have a mojit, and what it is trying to do is to retrieve the data from the model every 5 seconds, and refresh the html (a box area in page) with the new data. Code sample as below, note that my model.server.js must run on the server because it is using a server singleton object.
However I am encountering this problem: If the controller affinity is server, then the page runs okay, and the server is returning the rendered html every 5 seconds. If the controller affinity is client, then the page will not refresh (although initially rendered successfully), an error will occur saying ac.models.AxisModel is not defined. Is it correct to say that if model must run on the server (because of dependency on server) then the controller must also run on the server for the refresh to work? If so is there any way to workaround this so I can have controller to run on the client if I choose to?