@JMRKERJun 19.2014 — #I'm not exactly sure what you are trying to do here, so this is just a SWAG... <i> </i><!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" />
onControllerRegistered: function(frontController, controllerId) { // listen to additional events, but the front controller gives you // click and submit event handlers for free. },
// An "action handler" that handles a "click" event sum: function click(event, element, params) { event.preventDefault();
// use this.form to do some calculation... // element is <button data-action="calculator.sum">...</button> // params is an empty object } };
// Create the front controller var frontController = new Oxydizr.FrontController() .init(document.documentElement);
// Create your calculator controller var calculator = new Calc("calculator");
// Register your calculator controller with the front controller to wire up event handling frontController.registerController(calculator); </script> [/code]