ZimletJS: Difference between revisions
SvenDowideit (talk | contribs) (start somewhere.) |
SvenDowideit (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
Rather allot needs to be writtenby those that understand the intents of the JS API | Rather allot needs to be writtenby those that understand the intents of the JS API | ||
Line 9: | Line 8: | ||
../ZmCalendarApp.js: AjxDispatcher.registerMethod("GetCalController", "CalendarCore", new AjxCallback(this, this.getCalController)); | ../ZmCalendarApp.js: AjxDispatcher.registerMethod("GetCalController", "CalendarCore", new AjxCallback(this, this.getCalController)); | ||
Tasks_all.js: var cc = AjxDispatcher.run("GetCalController"); | Tasks_all.js: var cc = AjxDispatcher.run("GetCalController"); | ||
== AjxCallback == | |||
Revision as of 13:44, 28 September 2008
Rather allot needs to be writtenby those that understand the intents of the JS API
AjxDispatcher
appears to be a way for anyone to register a global function that can then be run 'by name'
ie.
../ZmCalendarApp.js: AjxDispatcher.registerMethod("GetCalController", "CalendarCore", new AjxCallback(this, this.getCalController)); Tasks_all.js: var cc = AjxDispatcher.run("GetCalController");
AjxCallback